diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2004-01-28 01:36:39 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2004-01-28 01:36:39 +0000 |
commit | 78aa77c7415f569ad964d8b5b03ddb048f90beee (patch) | |
tree | a8e3645f5bf1b705d7db5b9df4045f9efa54464c /test/snapshot2.test | |
parent | 74367691ed6938fb64ee66df6c9db99d6b1870f9 (diff) | |
download | quilt-78aa77c7415f569ad964d8b5b03ddb048f90beee.tar.gz |
- Add a few more test cases for subdirectory support.
- Fix a few bugs introduced while merging Chris's patch.
Diffstat (limited to 'test/snapshot2.test')
-rw-r--r-- | test/snapshot2.test | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/test/snapshot2.test b/test/snapshot2.test new file mode 100644 index 0000000..89daa32 --- /dev/null +++ b/test/snapshot2.test @@ -0,0 +1,61 @@ + $ mkdir -p d/patches d/d + $ cd d/d + + $ quilt new snapshot + > Patch snapshot is now on top + $ quilt add f.txt + > File d/f.txt added to patch snapshot + $ cat > f.txt + < f.txt + + $ quilt add g.txt + > File d/g.txt added to patch snapshot + $ cat > g.txt + < g.txt + + $ quilt refresh + > Refreshed patch snapshot + $ quilt snapshot + $ quilt pop -q + > Removing snapshot + > No patches applied + + $ quilt fork + > Fork of patches/snapshot created as patches/snapshot-2 + + $ quilt push -q + > Applying snapshot-2 + > Now at patch snapshot-2 + + $ quilt remove g.txt + > File d/g.txt removed from patch snapshot-2 + + $ quilt add h.txt + > File d/h.txt added to patch snapshot-2 + + $ cat > h.txt + < h.txt + + $ cat >> f.txt + < more changes + + $ quilt refresh + > Refreshed patch snapshot-2 + + $ quilt diff --snapshot | grep -v "^\\(---\\|+++\\)" + > Index: d/d/f.txt + > =================================================================== + > @@ -1 +1,2 @@ + > f.txt + > +more changes + > Index: d/d/g.txt + > =================================================================== + > @@ -1 +0,0 @@ + > -g.txt + > Index: d/d/h.txt + > =================================================================== + > @@ -0,0 +1 @@ + > +h.txt + + $ cd ../.. + $ rm -rf d |