From: Junio C Hamano Date: Tue, 30 Jul 2024 02:08:27 +0000 (-0700) Subject: Meta/cook: fix the reference links X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=648e17ba94223e02753bdeff0b6a3839002c0edc;p=thirdparty%2Fgit.git Meta/cook: fix the reference links Also support "Inviting" as a will-do phrase. --- diff --git a/Reintegrate b/Reintegrate index f15efb6679..762ea76c0c 100755 --- a/Reintegrate +++ b/Reintegrate @@ -39,6 +39,7 @@ annotate_merge () { if (/^Will (?:\S+ ){0,2}(fast-track|hold|keep|merge|drop|discard|cook|kick|defer|eject|be re-?rolled|wait)[,. ]/ || /^Not urgent/ || /^Not ready/ || /^Waiting for / || /^Under discussion/ || /^Can wait in / || /^Still / || /^Stuck / || /^On hold/ || /^Breaks / || + /^Inviting / || /^Needs? / || /^Expecting / || /^May want to / || /^Under review/) { return 1; } diff --git a/cook b/cook index 6cc8658d28..1be1eafaee 100755 --- a/cook +++ b/cook @@ -690,12 +690,7 @@ sub topic_in_seen { } my $mergetomaster; - -sub tweak_willdo { - my ($td) = @_; - my $desc = $td->{'desc'}; - my $text = $td->{'text'}; - +sub prepare_mergetomaster { if (!defined $mergetomaster) { my $master = `git describe $MASTER`; if ($master =~ /-rc(\d+)(-\d+-g[0-9a-f]+)?$/ && $1 != 0) { @@ -704,6 +699,12 @@ sub tweak_willdo { $mergetomaster = "Will merge to '$MASTER'."; } } +} + +sub tweak_willdo { + my ($td) = @_; + my $desc = $td->{'desc'}; + my $text = $td->{'text'}; # If updated description (i.e. the list of patches with # merge trail to 'next') has 'merged to next', then @@ -852,6 +853,7 @@ sub wildo_match { if (/^Will (?:\S+ ){0,2}(fast-track|hold|keep|merge|drop|discard|cook|kick|defer|eject|be re-?rolled|wait)[,. ]/ || /^Not urgent/ || /^Not ready/ || /^Waiting for / || /^Under discussion/ || /^Can wait in / || /^Still / || /^Stuck / || /^On hold/ || /^Breaks / || + /^Inviting / || /^Needs? / || /^Expecting / || /^May want to / || /^Under review/) { return 1; } @@ -862,6 +864,7 @@ sub wildo { my $fd = shift; my (%what, $topic, $last_merge_to_next, $in_section, $in_desc); my $too_recent = '9999-99-99'; + while (<$fd>) { chomp; @@ -944,13 +947,16 @@ sub wildo { } $count = "#$count"; printf " %s %-60s %s%s %5s\n", $sign, $name, $tip, $next, $count; - if ($what !~ /^Will merge to '\w+'\.$/) { - for my $s (@$source) { - if ($s =~ /^<(.*)>$/) { - $s = "https://lore.kernel.org/git/$1/"; - } - printf " $s\n"; + if ($what =~ /^Will merge to '\w+'/ && $what !~ /\?$/ || + $what eq $mergetomaster) { + next; + } + + for my $s (@$source) { + if (0 && $s =~ /^<(.*)>$/) { + $s = "https://lore.kernel.org/git/$1/"; } + printf " $s\n"; } } $ipbl = "\n"; @@ -1092,6 +1098,8 @@ if (!GetOptions("wildo" => \$wildo, exit 1; } +prepare_mergetomaster; + if ($wildo) { my $fd; if (!@ARGV) {