quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH] quilt patches: Match deleted files in unapplied patc


From: Jean Delvare
Subject: [Quilt-dev] [PATCH] quilt patches: Match deleted files in unapplied patches
Date: Tue, 30 Apr 2013 16:12:59 +0200

Let "quilt patches" also match deleted files in unapplied patches.
Commit 4df47975 was supposed to fix that already, but did not really.
---
 quilt/patches.in |    2 +-
 test/two.test    |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

--- a/quilt/patches.in
+++ b/quilt/patches.in
@@ -63,7 +63,7 @@ touched_by_patch()
        [ $strip = ab ] && strip=1
        cat_file $(patch_file_name $patch) \
        |  awk '
-       /^\+\+\+[ \t]/ {
+       /^(\+\+\+|---)[ \t]/ {
                sub(/^(\+\+\+|---)[ \t]/, "")
                sub(/[ \t][^ \t]*$/, "")
                sub(/^\/dev\/null/, "")
--- a/test/two.test
+++ b/test/two.test
@@ -160,3 +160,17 @@
        > Removing patch %{_P}patch2.diff
        > Removing patch %{_P}patch1.diff
        > No patches applied
+
+       $ quilt patches file4
+       > ../patches/patch1.diff
+       > ../patches/subdir/patch3.diff
+
+       $ quilt push -qa
+       > Applying patch ../patches/patch1.diff
+       > Applying patch ../patches/patch2.diff
+       > Applying patch ../patches/subdir/patch3.diff
+       > Now at patch ../patches/subdir/patch3.diff
+
+       $ quilt patches file4
+       > ../patches/patch1.diff
+       > ../patches/subdir/patch3.diff

-- 
Jean Delvare
Suse L3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]