%reverts = ();
sub phrase_these {
- my (@u) = sort @_;
+ my %uniq = ();
+ my (@u) = grep { $uniq{$_}++ == 0 } sort @_;
my @d = ();
for (my $i = 0; $i < @u; $i++) {
push @d, $u[$i];
my $graduated = 'Graduated to "master"';
my $new_topics = 'New Topics';
+my $discarded = 'Discarded';
my $old_new_topics = 'Old New Topics';
sub update_issue {
}
next;
}
+ # Annotate if the contents of the topic changed
my $n = $current->{$topic}{'desc'};
my $o = $td->{$topic}{'desc'};
if ($n ne $o) {
next if ($topic eq $blurb);
next if (!$incremental &&
grep { $topic eq $_ } @{$sd->{$graduated}});
+ next if (grep { $topic eq $_ } @{$sd->{$discarded}});
if (!exists $current->{$topic}) {
push @gone_topic, $topic;
}
}
next if (/^ /);
if (defined $topic &&
- /Will (?:\S+ )?(merge|drop|discard|cook)[. ]/i) {
+ /Will (?:\S+ ){0,2}(merge|drop|discard|cook)[. ]/i) {
wildo_queue(\%what, $_, $topic);
$topic = undef;
}
+ if (defined $topic &&
+ /^Not urgent;/) {
+ wildo_queue(\%what, $_, $topic);
+ $topic = undef;
+ }
+ if (defined $topic &&
+ /Originally merged to 'next' on ([-0-9]+)/) {
+ $topic->[1] = $1;
+ }
}
if (defined $topic) {
wildo_queue(\%what, "Undecided", $topic);