summaryrefslogtreecommitdiffstats
path: root/test/annotate.test
blob: 4f6def8e78b9baa5f92a79a3cee5fd816b8373bc (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
	$ mkdir d
	$ cd d
	
	$ cat > foo
	< foo
	< bar
	< baz

	$ quilt new patch
	> Patch patches/patch is now on top

	$ quilt add foo
	> File foo added to patch patches/patch

	$ sed -ie 's:b:B:' foo
	$ quilt refresh
	> Refreshed patch patches/patch

	$ quilt annotate foo
	>	foo
	> 1	Bar
	> 1	Baz
	>
	> 1	patches/patch

	$ quilt new patch2
	> Patch patches/patch2 is now on top
	
	$ quilt add foo
	> File foo added to patch patches/patch2
	
	$ sed -ie 's:Baz:baz:' foo
	$ quilt refresh
	> Refreshed patch patches/patch2

	$ quilt annotate foo
	>	foo
	> 1	Bar
	> 2	baz
	>
	> 1	patches/patch
	> 2	patches/patch2

	$ quilt new patch3
	> Patch patches/patch3 is now on top

	$ quilt add foo
	> File foo added to patch patches/patch3

	$ sed -ie '/Bar/d' foo
	$ quilt refresh
	> Refreshed patch patches/patch3

	$ quilt annotate foo
	>	foo
	> 2	baz
	>
	> 1	patches/patch
	> 2	patches/patch2
	> 3	patches/patch3

	$ cd ..
	$ rm -rf d