summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-04-21 14:17:15 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-04-21 14:17:17 +0000
commita4bc8dfb06e96c871d7c23d0b5e31adf41c95186 (patch)
tree873e124fb6dd06c3a65ce85faae25cd3c10ede48 /contrib
parentbaa1432f81743d2f1e956b2d07f8402e6a9b42fb (diff)
parentf51cb9a58a75e1f0d7132b6e86974eec3906f353 (diff)
Merge "TrivialRebase: Support custom labels" into stable-2.6
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 75159fd914..ff90b6c7c4 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.\'")