diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/create-delete.diff | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/create-delete.diff b/test/create-delete.diff new file mode 100644 index 0000000..6171a06 --- /dev/null +++ b/test/create-delete.diff @@ -0,0 +1,44 @@ +Check whether quilt generates patches properly so that GNU patch recognizes +file creates and deletions. + + $ mkdir d + $ cd d + + $ echo delete > delete + $ quilt new test.diff + > Patch test.diff is now on top + + $ quilt add create + > File create added to patch test.diff + + $ echo create > create + $ quilt refresh + > Refreshed patch test.diff + + $ quilt add delete + > File delete added to patch test.diff + + $ rm -f delete + $ quilt refresh + > Refreshed patch test.diff + + $ quilt pop -q + > Removing test.diff + > No patches applied + + $ echo create > create + $ rm -f delete + $ patch -p1 --dry-run < patches/test.diff + > The next patch would create the file create, + > which already exists! Assume -R? [n] + > Apply anyway? [n] + > Skipping patch. + > 1 out of 1 hunk ignored -- saving rejects to file create.rej + > The next patch would delete the file delete, + > which does not exist! Assume -R? [n] + > Apply anyway? [n] + > Skipping patch. + > 1 out of 1 hunk ignored + + $ cd .. + $ rm -rf d |