[Libreoffice-commits] .: Branch 'libreoffice-3-3' - bin/lo-commit-stat

Petr Mladek pmladek at kemper.freedesktop.org
Wed Feb 9 03:35:16 PST 2011


 bin/lo-commit-stat |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 9a58dd93ba6c9fa7369f55d14fa4d790af539fd4
Author: Petr Mladek <pmladek at suse.cz>
Date:   Wed Feb 9 12:31:18 2011 +0100

    lo-commit-stat: fix bug detection
    
    + fix printing of i#123 bugs
    + removed debug stuff to be able to detect more bugs again

diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat
index 4196f9b..9a88886 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;


More information about the Libreoffice-commits mailing list