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