diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2006-06-27 20:20:58 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2006-06-27 20:20:58 +0000 |
commit | cdc2a8419fb367c46447e183153e7f6ed2317be1 (patch) | |
tree | d6bb9e797f1f1b3a49a48f248bc6fbf7d6b8de4d /test | |
parent | f13ba80fd3cbb8866459fe900758da2061b93e05 (diff) | |
download | quilt-cdc2a8419fb367c46447e183153e7f6ed2317be1.tar.gz |
- quilt/push.in: Fix a bug introduced with the -p ab support.
- test/dir-a-b.test: Add a regression test case for this fix.
Diffstat (limited to 'test')
-rw-r--r-- | test/dir-a-b.test | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/dir-a-b.test b/test/dir-a-b.test new file mode 100644 index 0000000..01f0287 --- /dev/null +++ b/test/dir-a-b.test @@ -0,0 +1,43 @@ + $ rm -rf d + $ mkdir -p d/patches + $ cd d + + $ echo a > test.txt + + $ cat > patches/ab.diff + < --- a/test.txt + < +++ b/test.txt + < @@ -1 +1 @@ + < -a + < +b + + $ echo "ab.diff -pab" > patches/series + + $ quilt push -q + > Applying patch patches/ab.diff + > Now at patch patches/ab.diff + + $ quilt diff --no-index + > --- a/test.txt + > +++ b/test.txt + > @@ -1 +1 @@ + > -a + > +b + + $ rm patches/ab.diff + $ quilt refresh --no-index + > Refreshed patch patches/ab.diff + + $ cat patches/ab.diff + > --- a/test.txt + > +++ b/test.txt + > @@ -1 +1 @@ + > -a + > +b + + $ quilt pop -qR + > Removing patch patches/ab.diff + > No patches applied + + $ cd .. + $ rm -rf d |