~ubuntu-dev/ubuntu/lucid/quilt/lucid-201002101907

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
	$ rm -rf d
	$ mkdir -p d/patches
	$ cd d

	$ cat > a
	< a
	< b
	< c

	$ quilt new test.diff
	> Patch patches/test.diff is now on top

	$ quilt add a
	> File a added to patch patches/test.diff

	$ cat > a
	< a 
	< b
	< c 

	$ quilt refresh
	> Warning: trailing whitespace in lines 1,3 of a
	> Refreshed patch patches/test.diff

	$ grep '[ \t]$' patches/test.diff
	> +a 
	> +c 

	$ quilt refresh -U0
	> Warning: trailing whitespace in lines 1,3 of a
	> Refreshed patch patches/test.diff

	$ quilt refresh --strip-trailing-whitespace
	> Removing trailing whitespace from lines 1,3 of a
	> Refreshed patch patches/test.diff

	$ grep '[ \t]$' patches/test.diff

	$ quilt pop -q
	> Removing patch patches/test.diff
	> No patches applied

	$ cat > a
	< a
	< b
	< c

	$ quilt new test2.diff
	> Patch patches/test2.diff is now on top

	$ quilt add a
	> File a added to patch patches/test2.diff

	$ cat > a
	< a 
	< b
	< c 

	$ quilt refresh -c
	> Warning: trailing whitespace in lines 1,3 of a
	> Refreshed patch patches/test2.diff

	$ grep '[ \t]$' patches/test2.diff
	> ! a 
	> ! c 

	$ quilt refresh -C0
	> Warning: trailing whitespace in lines 1,3 of a
	> Refreshed patch patches/test2.diff

	$ quilt refresh -c --strip-trailing-whitespace
	> Removing trailing whitespace from lines 1,3 of a
	> Refreshed patch patches/test2.diff

	$ grep '[ \t]$' patches/test2.diff

	$ quilt pop -q
	> Removing patch patches/test2.diff
	> No patches applied

	$ cd ..
	$ rm -rf d