summaryrefslogtreecommitdiffstats
path: root/test/annotate.test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-06-18 13:15:57 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-06-18 13:15:57 +0000
commit442b3debff33d2d0f13214abf42bd53525557ff9 (patch)
tree051bcb979e039725eb44262d8ab857d7a8e8361c /test/annotate.test
parent0eb29c356d79095bf000ad2584f69435dfba3043 (diff)
downloadquilt-442b3debff33d2d0f13214abf42bd53525557ff9.tar.gz
- Add new annotate command.
Diffstat (limited to 'test/annotate.test')
-rw-r--r--test/annotate.test63
1 files changed, 63 insertions, 0 deletions
diff --git a/test/annotate.test b/test/annotate.test
new file mode 100644
index 0000000..4f6def8
--- /dev/null
+++ b/test/annotate.test
@@ -0,0 +1,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