diff options
author | Orgad Shaneh <orgads@gmail.com> | 2013-04-18 09:25:25 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-04-19 18:12:11 +0300 |
commit | f51cb9a58a75e1f0d7132b6e86974eec3906f353 (patch) | |
tree | 0705f36586c529057cdbf3f6e7b836663dd23b9b | |
parent | 7d3f63c3b62d46f1541c015d7141961bc7e4881c (diff) |
TrivialRebase: Support custom labels
Change-Id: I7352ecb48e78fd1c74c3fb00fe05429ce8f5eb77
-rwxr-xr-x | contrib/trivial_rebase.py | 5 |
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.\'") |