summaryrefslogtreecommitdiffstats
path: root/test/comments.test
blob: 09184430da5fd4ba48d4090b040e6c7fd964c48f (plain) (blame)
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
Regresion test case: Empty lines in patch descriptions were
accidentally removed.

	$ mkdir d
	$ cd d
	$ mkdir patches
	$ echo one > f
	$ cat > patches/test.diff
	< C1
	<
	< C3
	<
	< Index: f
	< ===================================================================
	< --- f.orig	foo
	< +++ f	bar
	< @@ -1 +1 @@
	< -one
	< +two

	$ cat > patches/series
	< test.diff -p0

	$ quilt push
	> Applying patch %{P}test.diff
	> patching file f
	>
	> Now at patch %{P}test.diff

	$ quilt refresh
	> Refreshed patch %{P}test.diff
	$ cat patches/test.diff
	> C1
	>
	> C3
	>
	> Index: f
	> ===================================================================
	> --- f.orig
	> +++ f
	> @@ -1 +1 @@
	> -one
	> +two

	$ quilt refresh -c
	> Refreshed patch %{P}test.diff

	$ cat patches/test.diff
	> C1
	>
	> C3
	>
	> Index: f
	> ===================================================================
	> *** f.orig
	> --- f
	> ***************
	> *** 1 ****
	> ! one
	> --- 1 ----
	> ! two
	
	$ quilt refresh
	> Refreshed patch %{P}test.diff
	
	$ cat patches/test.diff
	> C1
	>
	> C3
	>
	> Index: f
	> ===================================================================
	> --- f.orig
	> +++ f
	> @@ -1 +1 @@
	> -one
	> +two
	$ cd ..
	$ rm -rf d