summaryrefslogtreecommitdiffstats
path: root/test/import.test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2008-06-13 09:53:49 +0000
committerAndreas Gruenbacher <agruen@suse.de>2008-06-13 09:53:49 +0000
commitb634242a6a11012e45660e6579a0299cf1271ece (patch)
treec8cb115c4d3f32dd3541b1e78be009c0260917f9 /test/import.test
parent96ac24c4b7712a4db846efd682459dd8dd30732c (diff)
downloadquilt-b634242a6a11012e45660e6579a0299cf1271ece.tar.gz
- quilt/import.in: When importing multiple patches at once, make
sure that they won't end up in the series file in reverse order. This happened because each new patch was inserted before the "next" patch, which made it the new "next" patch.
Diffstat (limited to 'test/import.test')
-rw-r--r--test/import.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/import.test b/test/import.test
index c693810..d093d2d 100644
--- a/test/import.test
+++ b/test/import.test
@@ -228,5 +228,25 @@
>
> No patches applied
+ # Test importing multiple patches at once
+ $ rm -rf .pc patches
+ $ quilt import t/patch1.diff t/patchR.diff
+ > Importing patch t/patch1.diff (stored as patches/patch1.diff)
+ > Importing patch t/patchR.diff (stored as patches/patchR.diff)
+
+ $ cat patches/series
+ > patch1.diff
+ > patchR.diff
+
+ $ rm -rf .pc patches
+ $ quilt import t/patchR.diff
+ > Importing patch t/patchR.diff (stored as patches/patchR.diff)
+ $ quilt import t/patch1.diff
+ > Importing patch t/patch1.diff (stored as patches/patch1.diff)
+
+ $ cat patches/series
+ > patch1.diff
+ > patchR.diff
+
$ cd ..
$ rm -rf d