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

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Thu Jun 11 09:02:34 PDT 2015


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

New commits:
commit b09020ffad4ea78a7aef31b5c36aaa1b55e47410
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Thu Jun 11 18:01:58 2015 +0200

    some tweaks for the regression hotspot script

diff --git a/scripts/regression-hotspots.py b/scripts/regression-hotspots.py
index 7431b0a..c821a2e 100755
--- a/scripts/regression-hotspots.py
+++ b/scripts/regression-hotspots.py
@@ -50,9 +50,9 @@ if __name__ == '__main__':
     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')
+        logstat = sh.git('--no-pager', 'log', '--grep', '[fdo|tdf]#%d' % bug_id, '--stat')
         for line in logstat:
-            match = statregex.search(line)
+            match = statregex.search(str(line))
             if match and match.group(1):
                 filename = match.group(1)
                 sys.stderr.write('regression fix touched file: %s\n' % filename)


More information about the Libreoffice-commits mailing list