[Libreoffice-commits] dev-tools.git: esc-reporting/esc-analyze.py

jan Iversen jani at libreoffice.org
Wed May 17 11:58:36 UTC 2017


 esc-reporting/esc-analyze.py |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 1e684252316414a5c4d4d915b1105586c56ab143
Author: jan Iversen <jani at libreoffice.org>
Date:   Wed May 17 13:58:13 2017 +0200

    esc-report, gerrit ssh needs patchset and not just id

diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py
index 7680be1..50406a3 100755
--- a/esc-reporting/esc-analyze.py
+++ b/esc-reporting/esc-analyze.py
@@ -656,11 +656,17 @@ def analyze_reports():
             if x['email'] != ownerEmail and x['email'] != 'ci at libreoffice.org':
               cntReview += 1
         if xDate < cfg['1monthDate'] and not doBlock:
-          txt = row['messages'][len(row['messages'])-1]
+          x = len(row['messages'])-1
+          if x >= 0:
+            patchset = row['messages'][x]['_revision_number']
+            txt = row['messages'][x]['message']
+          else:
+            patchset = 1
+            txt = ''
           if 'A polite ping' in txt:
-            automateList['gerrit']['to_abandon_abandon'][entry['id']] = 0
+            automateList['gerrit']['to_abandon_abandon'][entry['id']] = patchset
           else:
-            automateList['gerrit']['to_abandon_comment'][entry['id']] = 0
+            automateList['gerrit']['to_abandon_comment'][entry['id']] = patchset
         if cntReview == 0 and not statList['people'][ownerEmail]['isCommitter']:
             tmpListToReview.append(entry['id'])
 


More information about the Libreoffice-commits mailing list