aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-01-27 16:58:37 +0100
committerBjörn Gustavsson <[email protected]>2010-01-27 16:59:10 +0100
commit053c62f403f86b703dba7b96ae82af81c0ec39b4 (patch)
tree3cdcf56e586de62f0e6cd7fd8f790492c70da71a
parent9450ade5dc3bda74f81b7ca69f77da88d9c6e8eb (diff)
downloadotp-053c62f403f86b703dba7b96ae82af81c0ec39b4.tar.gz
otp-053c62f403f86b703dba7b96ae82af81c0ec39b4.tar.bz2
otp-053c62f403f86b703dba7b96ae82af81c0ec39b4.zip
cook: Handle the [Stalled] section
-rwxr-xr-xcook29
1 files changed, 27 insertions, 2 deletions
diff --git a/cook b/cook
index 0bb55dce8f..189fde1115 100755
--- a/cook
+++ b/cook
@@ -32,6 +32,7 @@ print "Subject: $title\n";
print "X-dev-at: ", `git rev-parse dev`;
my %cooking;
+my %stalled;
my $current;
my $prev_dev = 'master';
if (@ARGV) {
@@ -44,9 +45,12 @@ if (@ARGV) {
my $group = $1;
if ($group =~ /^Graduated/) {
$state = 'skip';
+ } elsif ($group =~ /^Stalled/) {
+ $state = 'stalled';
} else {
$state = 'cooking';
}
+ $current = '';
next;
}
print if $state eq 'intro';
@@ -62,6 +66,19 @@ if (@ARGV) {
$cooking{$current} .= $_
unless /^\s*$/ && $cooking{$current} eq '';
}
+
+ if ($state eq 'stalled') {
+ if (/^[*] (\S+)/) {
+ $current = $1;
+ $stalled{$current} = "";
+ next;
+ }
+ next if /^ [+-]/;
+ next unless $current;
+ $stalled{$current} .= $_
+ unless /^\s*$/ && $stalled{$current} eq '';
+ }
+
}
}
@@ -108,7 +125,14 @@ if (@in_dev) {
header("[New topics]");
foreach (@in_pu) {
- describe('-', $_, '') unless defined $cooking{$_};
+ describe('-', $_, '') unless defined $cooking{$_} or
+ defined $stalled{$_}
+}
+
+header("[Stalled]");
+foreach (@in_pu) {
+ my $text = $stalled{$_};
+ describe('-', $_, $text) if defined $text;
}
header("[Cooking]");
@@ -135,7 +159,8 @@ sub header {
sub describe {
my($marker,$topic,$text) = @_;
print_commits($topic, "dev..$topic", $marker);
- print "\n$text" if $text ne '';
+ $text =~ s/\n*$//g;
+ print "\n$text\n" if $text ne '';
print "\n";
}