154
158
def _unpack_revision(self, elt):
155
159
"""XML Element -> Revision object"""
156
160
assert elt.tag == 'revision'
158
166
rev = Revision(committer = elt.get('committer'),
159
167
timestamp = float(elt.get('timestamp')),
160
168
revision_id = elt.get('revision_id'),
161
169
inventory_sha1 = elt.get('inventory_sha1')
164
171
parents = elt.find('parents') or []
166
173
assert p.tag == 'revision_ref', \