diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2006-02-14 03:52:23 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2006-02-14 03:52:23 +0000 |
commit | 5db3c1266c222c8278778cfcdf7ed1c006b5a8ca (patch) | |
tree | 1b0dfbf8f48f1ede594cb9df65013874636e5c25 /test | |
parent | 124c6e8a50abdfd2eef337f81679d37559484f16 (diff) | |
download | quilt-5db3c1266c222c8278778cfcdf7ed1c006b5a8ca.tar.gz |
- Fix a critical bug in the push command that causes parts of
patches to end up half-reversed (introduced on 22 Jan).
Diffstat (limited to 'test')
-rw-r--r-- | test/half-applies.test | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/half-applies.test b/test/half-applies.test new file mode 100644 index 0000000..a0aba9c --- /dev/null +++ b/test/half-applies.test @@ -0,0 +1,44 @@ +$ rm -rf d +$ mkdir -p d/patches +$ cd d + +$ echo foo > foo.orig +$ echo foo2 > foo +$ echo bar > bar.orig +$ echo bar2 > bar +$ diff -u foo.orig foo >> patches/foorab.diff +$ diff -u bar bar.orig >> patches/foorab.diff +$ mv foo.orig foo +$ mv bar.orig bar +$ echo foorab.diff -p0 > patches/series +$ quilt push +> Applying patch patches/foorab.diff +> patching file foo +> patching file bar +> Hunk #1 FAILED at 1. +> 1 out of 1 hunk FAILED -- rejects in file bar +> Patch patches/foorab.diff does not apply (enforce with -f) + +$ quilt push +> Applying patch patches/foorab.diff +> patching file foo +> patching file bar +> Hunk #1 FAILED at 1. +> 1 out of 1 hunk FAILED -- rejects in file bar +> Patch patches/foorab.diff does not apply (enforce with -f) + +$ quilt push -qf +> Applying patch patches/foorab.diff +> 1 out of 1 hunk FAILED -- saving rejects to file bar.rej +> Applied patch patches/foorab.diff (forced; needs refresh) + +$ quilt diff +> Index: foo +> =================================================================== +> --- foo.orig +> +++ foo +> @@ -1 +1 @@ +> -foo +> +foo2 +$ cd .. +$ rm -rf d |