From 97f0421523521ad2e0ff7b14eb38b854a0b9e0a0 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 16 Nov 2007 07:22:02 -0800 Subject: [PATCH] Make sure we process a parent patch before a dependent patch. --- support/patch-update | 70 ++++++++++++++++++++++++++++++++------------ 1 file changed, 51 insertions(+), 19 deletions(-) diff --git a/support/patch-update b/support/patch-update index 20fbcab8..c4289820 100755 --- a/support/patch-update +++ b/support/patch-update @@ -45,8 +45,58 @@ while () { } close PIPE; +my(%parent, %description); foreach my $patch (@patches) { + my $branch = ($local_patch{$patch} ? '' : 'origin/') . "patch/$patch"; + open(PIPE, '-|', 'git-diff', "master...$branch", '--', "PATCH.$patch") or die $!; + while () { + last if /^@@ /; + } + my $desc = ''; + while () { + next if /^-/; # huh?? + s/^.//; + if (m#patch -p1 ', "patches/$patch.diff") or die $!; - - while () { - if (m#patch -p1