summaryrefslogtreecommitdiffstats
path: root/test/remove.test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-02-10 10:59:24 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-02-10 10:59:24 +0000
commitd19ec29dec7210bc30dbd715a9a7a26bd2a1eee2 (patch)
treec4170a2c9bf5b880907763ca2982f446d27d44c9 /test/remove.test
parentc6e5788b1e0ee1de26779c37a489f24cbd4273e4 (diff)
downloadquilt-d19ec29dec7210bc30dbd715a9a7a26bd2a1eee2.tar.gz
- quilt remove: Update restored file's timestamp. Also, some usesv0.39
caused a subsequent ``quilt diff -z'' to fail: we must mark the patch as dirty after removing files. - test/run: adjust to terminal width. - Bump version to 0.39.
Diffstat (limited to 'test/remove.test')
-rw-r--r--test/remove.test49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/remove.test b/test/remove.test
new file mode 100644
index 0000000..f8026bd
--- /dev/null
+++ b/test/remove.test
@@ -0,0 +1,49 @@
+ $ mkdir -p d/patches
+ $ cd d
+
+ $ echo f1 > f
+ $ echo g1 > g
+ $ quilt new p.diff
+ > Patch patches/p.diff is now on top
+
+ $ quilt add f g h
+ > File f added to patch patches/p.diff
+ > File g added to patch patches/p.diff
+ > File h added to patch patches/p.diff
+
+ $ echo h1 > h
+ $ rm g
+ $ quilt refresh
+ > Refreshed patch patches/p.diff
+
+ $ quilt remove f
+ > File f removed from patch patches/p.diff
+
+ $ quilt diff -z
+ $ quilt pop -qf
+ > Removing patch patches/p.diff
+ > No patches applied
+
+ $ quilt push -q
+ > Applying patch patches/p.diff
+ > Now at patch patches/p.diff
+
+ $ quilt remove g
+ > File g removed from patch patches/p.diff
+
+ $ quilt diff -z
+ $ quilt pop -qf
+ > Removing patch patches/p.diff
+ > No patches applied
+
+ $ quilt push -q
+ > Applying patch patches/p.diff
+ > Now at patch patches/p.diff
+
+ $ quilt remove h
+ > File h removed from patch patches/p.diff
+
+ $ quilt diff -z
+
+ $ cd ..
+ $ rm -rf d