summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorOrgad Shaneh <orgads@gmail.com>2013-04-18 09:25:25 +0300
committerOrgad Shaneh <orgads@gmail.com>2013-04-19 18:12:11 +0300
commitf51cb9a58a75e1f0d7132b6e86974eec3906f353 (patch)
tree0705f36586c529057cdbf3f6e7b836663dd23b9b /contrib
parent7d3f63c3b62d46f1541c015d7141961bc7e4881c (diff)
TrivialRebase: Support custom labels
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/trivial_rebase.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/trivial_rebase.py b/contrib/trivial_rebase.py
index 5d6a042793..2e702cbccc 100755
--- a/contrib/trivial_rebase.py
+++ b/contrib/trivial_rebase.py
@@ -226,8 +226,9 @@ class TrivialRebase:
# We don't care about previous submit attempts
continue
else:
- print "Unsupported category: %s" % approval
- continue
+ self.AppendAcctApproval(acct_approvals, approval['account_id'], '--%s %s' %
+ (approval['category_id'].lower().replace(' ', '-'),
+ approval['value']))
gerrit_review_msg = ("\'Automatically re-added by Gerrit trivial rebase "
"detection script.\'")