diff options
author | Orgad Shaneh <orgads@gmail.com> | 2013-07-25 21:54:27 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-07-25 21:57:50 +0300 |
commit | 02b672eea363767520b3267e1e84afec7cce95a1 (patch) | |
tree | 524ad6417518a0197b987eae0f35f3ddac0e72ad | |
parent | 4af8c8ff61c0c816da18b8953dbba56f6280917e (diff) |
TrivialRebase: Avoid re-adding -2 for code-review label
Change-Id: I35dadcce6e151ccbbabe4d443262ff8e2b457f3e
-rwxr-xr-x | contrib/trivial_rebase.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/trivial_rebase.py b/contrib/trivial_rebase.py index 538a7e02ac..b5c70c3867 100755 --- a/contrib/trivial_rebase.py +++ b/contrib/trivial_rebase.py @@ -221,8 +221,10 @@ class TrivialRebase: # Note: Sites with different 'copy_min_score' values in the # approval_categories DB table might want different behavior here. # Additional categories should also be added if desired. - if approval["category_id"] == "Code-Review" and approval['value'] != '-2': - self.AppendAcctApproval(approval['account_id'], '--label Code-Review=%s' % approval['value']) + if approval["category_id"] == "Code-Review": + if approval['value'] != '-2': + self.AppendAcctApproval(approval['account_id'], + '--label Code-Review=%s' % approval['value']) elif approval["category_id"] == "Verified": # Don't re-add verifies # self.AppendAcctApproval(approval['account_id'], '--label Verified=%s' % approval['value']) |