[Libreoffice-commits] dev-tools.git: scripts/gerrit-filter-domain
Miklos Vajna
vmiklos at collabora.co.uk
Mon Apr 28 01:15:56 PDT 2014
scripts/gerrit-filter-domain | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
New commits:
commit 79767d72acb658f633704b971127ad050c7c85b4
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Mon Apr 28 10:15:28 2014 +0200
gerrit-filter-domain: print all skip reasons, not just the first of them
Change-Id: I4a9ef9d6e3994d9311ff80d3fd027db10522d4ca
diff --git a/scripts/gerrit-filter-domain b/scripts/gerrit-filter-domain
index 1b1e464..9586bc7 100755
--- a/scripts/gerrit-filter-domain
+++ b/scripts/gerrit-filter-domain
@@ -44,7 +44,7 @@ def main(argv):
skippedChanges = []
for i in domainChanges:
- skip = False
+ skip = []
files = (set([fileobj['file'] for pset in i['patchSets'] for fileobj in pset['files']]))
files.remove('/COMMIT_MSG')
@@ -53,20 +53,18 @@ def main(argv):
for j in files:
for k in blacklist:
if k in j:
- skippedChanges.append((i, k))
- skip = True
+ skip.append(k)
break
if skip:
break
- if not skip:
- for j in i['patchSets'][-1]['approvals']:
- if j['value'] in ("-1", "-2"):
- skippedChanges.append((i, "negative review"))
- skip = True
- break
+ for j in i['patchSets'][-1]['approvals']:
+ if j['value'] in ("-1", "-2"):
+ skip.append("%s review" % j['value'])
+ break
except:
pass
- if skip:
+ if len(skip):
+ skippedChanges.append((i, skip))
continue
print("http://gerrit.libreoffice.org/%s [%s] %s" % (i['number'], i['branch'], i['subject']))
print("Changed files: %s" % ', '.join(files))
@@ -75,7 +73,7 @@ def main(argv):
print()
print("Skipped %s changes:" % len(skippedChanges))
for i in skippedChanges:
- print("http://gerrit.libreoffice.org/%s: %s" % (i[0]['number'], i[1]))
+ print("http://gerrit.libreoffice.org/%s: %s" % (i[0]['number'], ", ".join(i[1])))
if __name__ == "__main__":
try:
More information about the Libreoffice-commits
mailing list