summaryrefslogtreecommitdiffstats
path: root/test/auto-refresh.test
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-11-12 23:19:24 +0100
committerJean Delvare <jdelvare@suse.de>2014-11-12 23:19:24 +0100
commit7189482be1393c7b9e6170410d820f1867e8ec93 (patch)
treeba37939b2e7b32d81b45fff36569fa5b06597eb3 /test/auto-refresh.test
parent5fd023e14932bd01dbd5cbd6636a7ea5531c5d40 (diff)
downloadquilt-7189482be1393c7b9e6170410d820f1867e8ec93.tar.gz
pop: Add --refresh option
Add an option to automatically refresh each patch before it gets unapplied.
Diffstat (limited to 'test/auto-refresh.test')
-rw-r--r--test/auto-refresh.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/auto-refresh.test b/test/auto-refresh.test
new file mode 100644
index 0000000..9658b71
--- /dev/null
+++ b/test/auto-refresh.test
@@ -0,0 +1,30 @@
+$ mkdir patches
+
+$ echo a > a
+$ echo b > b
+
+$ quilt new a.patch
+> Patch patches/a.patch is now on top
+$ quilt add a
+> File a added to patch patches/a.patch
+$ echo A > a
+
+$ quilt new b.patch
+> Patch patches/b.patch is now on top
+$ quilt add b
+> File b added to patch patches/b.patch
+$ echo B > b
+
+$ quilt pop -fa --refresh
+> Options -f and --refresh are mutually exclusive
+
+$ quilt pop -a --refresh
+> Refreshed patch patches/b.patch
+> Removing patch patches/b.patch
+> Restoring b
+>
+> Refreshed patch patches/a.patch
+> Removing patch patches/a.patch
+> Restoring a
+>
+> No patches applied