2 # Feed whats-cooking to this to find what to merge to 'master'
5 my ($topic, $base) = @_;
7 (open $fh, "-|", qw(git rev-list), "^$base", $topic)
14 or die "$! (after $count for $topic)";
18 my ($topic, $topic_date, $last);
22 if (/^\* ([a-z][a-z]\/[-a
-zA
-Z0
-9_
]+) \
(([-0-9]{10})\
) \d
+ commit
/) {
28 if (/^ \(merged to 'next' on ([-0-9]{10}) at/) {
29 push @candidate, [$topic, $1, $topic_date, ""];
35 if (defined $last && @candidate && $candidate[-1][0] eq $last) {
36 if (/Will merge to 'master'/i) {
37 $candidate[-1][3] = "*";
42 for $topic (sort { ($a->[1] cmp $b->[1]) || ($a->[2] cmp $b->[2]) } @candidate) {
43 my $count = merged
($topic->[0], 'master');
45 print "$topic->[1] $topic->[2] ($count) $topic->[3]$topic->[0]\n";