diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-04-26 10:33:32 +0000 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2006-04-26 10:33:32 +0000 |
commit | 14a8982f98baaa99205bc62cf272a596fcd693f3 (patch) | |
tree | 3ed42e6a6e32b79a313f98ceb3dc09f3e9e69cb8 /test/empty.test | |
parent | 968586bd01386d198f7fa8d1dfa5e49e539a0bbf (diff) | |
download | quilt-14a8982f98baaa99205bc62cf272a596fcd693f3.tar.gz |
- quilt/pop.in: Delete .pc/$patch directory when popping empty
patches. Report and original patch by Arnaud Patard.
- quilt/push.in: Create .pc/$patch directory when pushing missing
or empty patches. If we don't, some commands such as rename can
fail later.
- test/missing.test: Test rename command on missing patches.
- test/empty.test: New test case similar to missing.test, but for
empty patches. Somewhat based on a contribution by Arnaud
Patard.
Diffstat (limited to 'test/empty.test')
-rw-r--r-- | test/empty.test | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/empty.test b/test/empty.test new file mode 100644 index 0000000..fb57ee7 --- /dev/null +++ b/test/empty.test @@ -0,0 +1,39 @@ + $ rm -rf d + $ mkdir -p d/patches + $ cd d + + $ cat > patches/series + < empty1.diff + < empty2.diff + $ touch patches/empty1.diff patches/empty2.diff + + $ quilt push -qa + > Applying patch %{P}empty1.diff + > Patch %{P}empty1.diff appears to be empty; applied + > Applying patch %{P}empty2.diff + > Patch %{P}empty2.diff appears to be empty; applied + > Now at patch %{P}empty2.diff + + $ quilt rename empty3.diff + > Patch %{P}empty2.diff renamed to %{P}empty3.diff + + $ quilt pop -qa + > Patch %{P}empty3.diff appears to be empty, removing + > Patch %{P}empty1.diff appears to be empty, removing + > No patches applied + + $ quilt new empty_new.diff + > Patch %{P}empty_new.diff is now on top + + $ quilt pop -q + > Patch %{P}empty_new.diff appears to be empty, removing + > No patches applied + + $ quilt delete empty_new.diff + > Removed patch %{P}empty_new.diff + + $ quilt rename -P empty3.diff empty_new.diff + > Patch %{P}empty3.diff renamed to %{P}empty_new.diff + + $ cd .. + $ rm -rf d |