Skip to content

Commit

Permalink
Item13887: Don't repeat item# if part of branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Nov 20, 2016
1 parent cd3d828 commit 937f4cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/tools/branches
Expand Up @@ -30,12 +30,15 @@ sub descr {

sub summary {
my $it = shift;
my $br = shift;
($br) = $br =~ m/(Item\d+)/;

#print "SUMMARY for @_\n";
return $items{$it} if $items{$it};
my $url = "http://foswiki.org/Tasks/ItemSummaryQuery?item=$it;skin=text";
my $description = get $url;
$description =~ s#<b>.*</b>\n##;
$description =~ s#^$br:## if $br;
$items{$it} = $description;
return $description;
}
Expand Down Expand Up @@ -88,10 +91,10 @@ for my $branch (@branches) {
my $desc = descr $branch;
print indent $desc. "\n" if $desc;
if ( $branch =~ m/(Item(?:[0-9]){3,5})/ ) {
print indent summary $1;
print indent summary( $1, $branch );
}
elsif ( $desc =~ m/(Item(?:[0-9]){3,5})/ ) {
print indent summary $1;
print indent summary( $1, $branch );
}

print "\n";
Expand Down

0 comments on commit 937f4cc

Please sign in to comment.