diff options
author | Jean Delvare <jdelvare@suse.de> | 2012-12-13 18:03:33 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2012-12-13 18:03:33 +0100 |
commit | 49e8fa41c5dfd8d75fe253a0add70d4a6f90fc6e (patch) | |
tree | 768cb5f6c6d9918af74fd4ac73d4a9433aae1626 /test/refresh.test | |
parent | 19eecdda60b7e7f9e7d7efacc631869e15cbd569 (diff) | |
download | quilt-49e8fa41c5dfd8d75fe253a0add70d4a6f90fc6e.tar.gz |
refresh: Accept refreshing empty patches
If told to refresh a patch and the patch is empty, still obey. The
user should know what he/she is doing. If the patch was non-empty
before, we must erase it, otherwise a subsequent pop will fail,
complaining that the patch should be refreshed.
Diffstat (limited to 'test/refresh.test')
-rw-r--r-- | test/refresh.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/refresh.test b/test/refresh.test new file mode 100644 index 0000000..7bfcaae --- /dev/null +++ b/test/refresh.test @@ -0,0 +1,22 @@ + $ mkdir patches + + $ echo a > a + $ echo b > b + $ diff -u a b > patches/patch + $ echo patch -p0 > patches/series + $ rm -f b + $ quilt push -q + > Applying patch patches/patch + > Now at patch patches/patch + + $ echo a > a + $ quilt refresh + > Nothing in patch patches/patch + $ quilt pop + > Removing patch patches/patch + > Restoring a + > + > No patches applied + $ cat a + > a + $ cat patches/patch |