diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-02-09 12:37:47 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-02-09 12:37:47 +0100 |
commit | b9e228347b2ef07d3b0907a7268f2a1ee085e6f3 (patch) | |
tree | ce5b61794c530cae87a080627a62434f1a93ec0b /bin/lo-commit-stat | |
parent | b9bb63b5c39ce5a8673826487d6908b1b3aad186 (diff) |
lo-commit-stat: fix bug detection
+ fix printing of i#123 bugs
+ removed debug stuff to be able to detect more bugs again
Diffstat (limited to 'bin/lo-commit-stat')
-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 41e2e86805e3..191842fce57b 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; |