1252
1251
xml = self.branch.repository.get_inventory_xml(new_revision)
1253
1252
firstline = xml.split('\n', 1)[0]
1254
1253
if (not 'revision_id="' in firstline or
1256
1255
inv = self.branch.repository.deserialise_inventory(
1258
1257
inv.revision_id = new_revision
1260
1259
assert isinstance(xml, str), 'serialised xml must be bytestring.'
1261
1260
path = self._basis_inventory_name()