summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-06-06 00:20:07 +0000
committerAndreas Gruenbacher <agruen@suse.de>2004-06-06 00:20:07 +0000
commiteb1a6de33c1b631e4636ff26dde2945a0db8db74 (patch)
treef8f6db4094c602e59fbbf9398e6edfaa499e851f /test
parent77265baff69c1576f9e90e13b9a23d72363ab897 (diff)
downloadquilt-eb1a6de33c1b631e4636ff26dde2945a0db8db74.tar.gz
- backup-file.c: Add code to recursively search .pc directories.
Add a "no-op" mode as default, and allow to just unlink files. - apatch/rpatch: let backup-files search .pc directories instead of generating temporary file lists. - rpatch/pop: unlink files of topmost patch after popping instead of unlinking at each step. - If QUILTRC is set in the environment, use this as the configuration file.
Diffstat (limited to 'test')
-rw-r--r--test/new.test53
-rw-r--r--test/test.quiltrc2
2 files changed, 55 insertions, 0 deletions
diff --git a/test/new.test b/test/new.test
new file mode 100644
index 0000000..dfa8f64
--- /dev/null
+++ b/test/new.test
@@ -0,0 +1,53 @@
+ $ mkdir -p d/patches
+ $ cd d
+
+ $ echo reject > f
+ $ echo p.diff > patches/series
+ $ cat > patches/p.diff
+ < --- d.orig/f
+ < +++ d/f
+ < @@ -1 +1 @@
+ < -old
+ < +new
+ < --- d.orig/g
+ < +++ d/g
+ < @@ -0,0 +1 @@
+ < +added
+
+
+ $ quilt push
+ > Applying p.diff
+ > patching file f
+ > Hunk #1 FAILED at 1.
+ > 1 out of 1 hunk FAILED -- rejects in file f
+ > patching file g
+ > Patch p.diff does not apply (enforce with -f)
+
+ $ quilt push -f
+ > Applying p.diff
+ > patching file f
+ > Hunk #1 FAILED at 1.
+ > 1 out of 1 hunk FAILED -- saving rejects to file f.rej
+ > patching file g
+ > Applied p.diff (forced; needs refresh)
+
+ $ echo new > f
+ $ quilt refresh
+ > Refreshed patch p.diff
+ $ cat patches/p.diff | sed -e "s/\\t.*//"
+ > Index: d/f
+ > ===================================================================
+ > --- d.orig/f
+ > +++ d/f
+ > @@ -1 +1 @@
+ > -reject
+ > +new
+ > Index: d/g
+ > ===================================================================
+ > --- d.orig/g
+ > +++ d/g
+ > @@ -0,0 +1 @@
+ > +added
+
+ $ cd ..
+ $ rm -rf d
diff --git a/test/test.quiltrc b/test/test.quiltrc
new file mode 100644
index 0000000..468812d
--- /dev/null
+++ b/test/test.quiltrc
@@ -0,0 +1,2 @@
+# Define this to generate diffs without timestamps.
+QUILT_NO_DIFF_TIMESTAMPS=yes