Browse Source

Meta/cook: retire Old New Topics and send them directly to Cooking

todo
Junio C Hamano 12 years ago
parent
commit
fcfbf8ee3b
  1. 21
      cook

21
cook

@ -461,7 +461,7 @@ sub write_cooking {
my $graduated = 'Graduated to "master"'; my $graduated = 'Graduated to "master"';
my $new_topics = 'New Topics'; my $new_topics = 'New Topics';
my $discarded = 'Discarded'; my $discarded = 'Discarded';
my $old_new_topics = 'Old New Topics'; my $cooking_topics = 'Cooking';


sub update_issue { sub update_issue {
my ($cooking) = @_; my ($cooking) = @_;
@ -512,20 +512,13 @@ sub update_issue {
if (!$incremental) { if (!$incremental) {
my $sd = $cooking->{'section_data'}; my $sd = $cooking->{'section_data'};
my $sl = $cooking->{'section_list'}; my $sl = $cooking->{'section_list'};
# Rename "New" to "Old New" and insert "New".
# Move "New" to "Old New" if (exists $sd->{$new_topics}) {
my $i; if (!exists $sd->{$cooking_topics}) {
my $doneso; $sd->{$cooking_topics} = [];
for ($i = 0; $i < @{$sl}; $i++) { unshift @{$sl}, $cooking_topics;
if ($sl->[$i] eq $new_topics) {
$sl->[$i] = $old_new_topics;
unshift @{$sl}, $new_topics;
$doneso = 1;
last;
} }
} unshift @{$sd->{$cooking_topics}}, @{$sd->{$new_topics}};
if ($doneso) {
$sd->{$old_new_topics} = $sd->{$new_topics};
} }
$sd->{$new_topics} = []; $sd->{$new_topics} = [];
} }

Loading…
Cancel
Save