Merge "Treat -2 as a negative approval for expirations."

This commit is contained in:
Jenkins 2013-07-18 04:41:29 +00:00 committed by Gerrit Code Review
commit 05a47939ff

View File

@ -75,7 +75,7 @@ def main():
if 'rowCount' not in row:
# Search for negative approvals
for approval in row['currentPatchSet']['approvals']:
if approval['value'] == '-1':
if approval['value'] in ('-1', '-2'):
expire_patch_set(ssh,
row['currentPatchSet']['revision'],
row['subject'])