diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-02-09 12:31:18 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-02-09 12:34:59 +0100 |
commit | 9a58dd93ba6c9fa7369f55d14fa4d790af539fd4 (patch) | |
tree | d4e1990e05804aa20e05f626fb5b8ca91f10e3ba | |
parent | fb1f5540e570ff5e490d3bc6c4ff3b25a7f4ef96 (diff) |
lo-commit-stat: fix bug detection
+ fix printing of i#123 bugs
+ removed debug stuff to be able to detect more bugs again
-rwxr-xr-x | bin/lo-commit-stat | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat index 4196f9b9f..9a8888677 100755 --- a/bin/lo-commit-stat +++ b/bin/lo-commit-stat @@ -25,25 +25,23 @@ sub search_bugs($$$$) # match #i123# } elsif ( $line =~ m/(\#i)(\d+)(\#)/ ) { $bug_orig = $1 . $2 . $3; - $bug = $2; + $bug = "i#$2"; } else { $bug = undef; next; } +# print " found $bug\n"; $bug_orig =~ s/\#/\\#/; $line =~ s/[Rr]esolves:\s*$bug_orig\s*//; $line =~ s/\s*-\s*$bug_orig\s*//; $line =~ s/\(?$bug_orig\)?[:,]?\s*//; %{$pdata->{$piece}{$commit_id}{'bugs'}} = () if (! defined %{$pdata->{$piece}{$commit_id}{'bugs'}}); $pdata->{$piece}{$commit_id}{'bugs'}{$bug} = 1; - $bug = undef; - return $line; } return $line; } - sub standardize_summary($) { my $line = shift; |