diff options
Diffstat (limited to 'test/revert.test')
-rw-r--r-- | test/revert.test | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test/revert.test b/test/revert.test new file mode 100644 index 0000000..cf7eae6 --- /dev/null +++ b/test/revert.test @@ -0,0 +1,50 @@ + $ rm -rf d + $ mkdir -p d/patches + $ cd d + + $ echo f1 > f + $ echo g1 > g + $ quilt new p.diff + > Patch patches/p.diff is now on top + + $ quilt add f g h + > File f added to patch patches/p.diff + > File g added to patch patches/p.diff + > File h added to patch patches/p.diff + + $ echo h1 > h + $ rm -f g + $ quilt refresh + > Refreshed patch patches/p.diff + + $ quilt revert f + > Changes to f in patch patches/p.diff reverted + + $ quilt diff -z + $ quilt pop -qf + > Removing patch patches/p.diff + > No patches applied + + $ quilt push -q + > Applying patch patches/p.diff + > Now at patch patches/p.diff + + $ quilt revert g + > Changes to g in patch patches/p.diff reverted + + $ quilt diff -z + $ quilt pop -qf + > Removing patch patches/p.diff + > No patches applied + + $ quilt push -q + > Applying patch patches/p.diff + > Now at patch patches/p.diff + + $ quilt revert h + > Changes to h in patch patches/p.diff reverted + + $ quilt diff -z + + $ cd .. + $ rm -rf d |