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

View File

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