@@ -690,12 +690,7 @@ sub topic_in_seen {
690
690
}
691
691
692
692
my $mergetomaster ;
693
-
694
- sub tweak_willdo {
695
- my ($td ) = @_ ;
696
- my $desc = $td -> {' desc' };
697
- my $text = $td -> {' text' };
698
-
693
+ sub prepare_mergetomaster {
699
694
if (!defined $mergetomaster ) {
700
695
my $master = ` git describe $MASTER ` ;
701
696
if ($master =~ / -rc(\d +)(-\d +-g[0-9a-f]+)?$ / && $1 != 0) {
@@ -704,6 +699,12 @@ sub tweak_willdo {
704
699
$mergetomaster = " Will merge to '$MASTER '." ;
705
700
}
706
701
}
702
+ }
703
+
704
+ sub tweak_willdo {
705
+ my ($td ) = @_ ;
706
+ my $desc = $td -> {' desc' };
707
+ my $text = $td -> {' text' };
707
708
708
709
# If updated description (i.e. the list of patches with
709
710
# merge trail to 'next') has 'merged to next', then
@@ -852,6 +853,7 @@ sub wildo_match {
852
853
if (/ ^Will (?:\S + ){0,2}(fast-track|hold|keep|merge|drop|discard|cook|kick|defer|eject|be re-?rolled|wait)[,. ]/ ||
853
854
/ ^Not urgent/ || / ^Not ready/ || / ^Waiting for / || / ^Under discussion/ ||
854
855
/ ^Can wait in / || / ^Still / || / ^Stuck / || / ^On hold/ || / ^Breaks / ||
856
+ / ^Inviting / ||
855
857
/ ^Needs? / || / ^Expecting / || / ^May want to / || / ^Under review/ ) {
856
858
return 1;
857
859
}
@@ -862,6 +864,7 @@ sub wildo {
862
864
my $fd = shift ;
863
865
my (%what , $topic , $last_merge_to_next , $in_section , $in_desc );
864
866
my $too_recent = ' 9999-99-99' ;
867
+
865
868
while (<$fd >) {
866
869
chomp ;
867
870
@@ -944,13 +947,16 @@ sub wildo {
944
947
}
945
948
$count = " #$count " ;
946
949
printf " %s %-60s %s%s %5s\n " , $sign , $name , $tip , $next , $count ;
947
- if ($what !~ / ^Will merge to '\w +'\. $ / ) {
948
- for my $s (@$source ) {
949
- if ($s =~ / ^<(.*)>$ / ) {
950
- $s = " https://lore.kernel.org/git/$1 /" ;
951
- }
952
- printf " $s \n " ;
950
+ if ($what =~ / ^Will merge to '\w +'/ && $what !~ / \? $ / ||
951
+ $what eq $mergetomaster ) {
952
+ next ;
953
+ }
954
+
955
+ for my $s (@$source ) {
956
+ if (0 && $s =~ / ^<(.*)>$ / ) {
957
+ $s = " https://lore.kernel.org/git/$1 /" ;
953
958
}
959
+ printf " $s \n " ;
954
960
}
955
961
}
956
962
$ipbl = " \n " ;
@@ -1092,6 +1098,8 @@ if (!GetOptions("wildo" => \$wildo,
1092
1098
exit 1;
1093
1099
}
1094
1100
1101
+ prepare_mergetomaster;
1102
+
1095
1103
if ($wildo ) {
1096
1104
my $fd ;
1097
1105
if (!@ARGV ) {
0 commit comments