TrivialRebase: Exclude Code-Review-2

It is copied without the hook

Change-Id: I1881812ecd07e51cfce81a065321ad60a27c39b2
This commit is contained in:
Orgad Shaneh
2013-04-11 13:46:01 +03:00
parent 3e6ce23664
commit 0c68ab93be

View File

@@ -216,7 +216,7 @@ 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"] == "CRVW":
if approval["category_id"] == "CRVW" and approval['value'] != '-2':
self.AppendAcctApproval(approval['account_id'], '--code-review %s' % approval['value'])
elif approval["category_id"] == "VRIF":
# Don't re-add verifies