[Libreoffice-commits] dev-tools.git: 2 commits - scripts/regression-hotspots.py

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Mon Oct 14 06:15:26 PDT 2013


 scripts/regression-hotspots.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 074351bdad0574e9e13f89dcc63a5b3ab7c6f526
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Mon Oct 14 15:14:53 2013 +0200

    fdo#66750: add hint on --numstat

diff --git a/scripts/regression-hotspots.py b/scripts/regression-hotspots.py
index 952a1c2..95eb89f 100755
--- a/scripts/regression-hotspots.py
+++ b/scripts/regression-hotspots.py
@@ -49,6 +49,7 @@ if __name__ == '__main__':
     sys.stderr.write('found %d fixed regressions: %s\n' % (len(fixed_regression_ids), fixed_regression_ids))
     for bug_id in fixed_regression_ids:
         sys.stderr.write('working on bug %d\n' % bug_id)
+        # FIXME: use --numstat instead, which does not abbreviate filenames
         logstat = sh.git('--no-pager', 'log', '--grep', 'fdo#%d' % bug_id, '--stat')
         for line in logstat:
             match = statregex.search(line)
commit b55faba01ae8a7e8d452861a8b9c348f7d2d6b4a
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Mon Oct 14 15:13:30 2013 +0200

    fdo#66750: fix dir counts

diff --git a/scripts/regression-hotspots.py b/scripts/regression-hotspots.py
index 0b94792..952a1c2 100755
--- a/scripts/regression-hotspots.py
+++ b/scripts/regression-hotspots.py
@@ -32,9 +32,9 @@ def get_dir_counts(file_counts, level):
         if len(fileparts) > level:
             dirpart = '/'.join(fileparts[:level])
             if dirpart in dir_counts:
-                dir_counts[dirpart]+=1
+                dir_counts[dirpart]+=count
             else:
-                dir_counts[dirpart]=1
+                dir_counts[dirpart]=count
     return dir_counts
 
 def print_counts(counts):


More information about the Libreoffice-commits mailing list