Update gitdm to use gerrit 2.8 workflow names

This accomodates the changes in workflow state names from the updated
gerrit version 2.8, and allows gitdm's gerritdm tools to continue
to work with openstack.

Change-Id: Ib28b16f0d68d0b0d0915c46a50824d4e8802c5d5
This commit is contained in:
Dan Stangel 2014-06-11 13:50:09 -06:00
parent cd6ef30109
commit eefc802fc8
1 changed files with 5 additions and 4 deletions

View File

@ -34,13 +34,14 @@ class Reviewer:
return cls(r.get('username'), r.get('name'), r.get('email'))
class Approval:
CodeReviewed, Approved, Submitted, Verified = range(4)
CodeReviewed, Approved, Submitted, Verified, Workflow = range(5)
type_map = {
'CRVW': CodeReviewed,
'APRV': Approved,
'Code-Review': CodeReviewed,
'Approved': Approved,
'SUBM': Submitted,
'VRIF': Verified,
'Verified': Verified,
'Workflow': Workflow,
}
def __init__(self, type, value, date, by):