diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2003-10-26 13:31:25 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2003-10-26 13:31:25 +0000 |
commit | fa8a69af263c29ac5243e21878f24a3b175e11e6 (patch) | |
tree | 81d526c8921e68900f526fc27aa8eb3853fd8a4d /test/snapshot.test | |
parent | b0069c28a0600dd5dc01d5feaa9e10a805700577 (diff) | |
download | quilt-fa8a69af263c29ac5243e21878f24a3b175e11e6.tar.gz |
- Rename snapshot directory from ".snap0" to ".snap".
- `quilt diff: Speed up file list generation in `quilt diff'.
Don't use modified_files anymore. Instead, add first_modified_by
function. I want to get rid of the patches_per_file cache;
it sometimes was not brought up to date. Some cleanups.
- Add test/snapshot.test.
- Fix two errors in the date format in quilt.changes.
Diffstat (limited to 'test/snapshot.test')
-rw-r--r-- | test/snapshot.test | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/test/snapshot.test b/test/snapshot.test new file mode 100644 index 0000000..8ae8d29 --- /dev/null +++ b/test/snapshot.test @@ -0,0 +1,61 @@ + $ mkdir d + $ cd d + + $ quilt new snapshot + > Patch snapshot is now on top + $ quilt add f.txt + > File f.txt added to patch snapshot + $ cat > f.txt + < f.txt + + $ quilt add g.txt + > File 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 g.txt removed from patch snapshot-2 + + $ quilt add h.txt + > File 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/f.txt + > =================================================================== + > @@ -1 +1,2 @@ + > f.txt + > +more changes + > Index: d/g.txt + > =================================================================== + > @@ -1 +0,0 @@ + > -g.txt + > Index: d/h.txt + > =================================================================== + > @@ -0,0 +1 @@ + > +h.txt + + $ cd .. + $ rm -rf d |