4055
4055
deserialiser = inventory_delta.InventoryDeltaSerializer()
4056
4056
parse_result = deserialiser.parse_text_bytes(inventory_delta_bytes)
4057
4057
basis_id, new_id, rich_root, tree_refs, inv_delta = parse_result
4059
4058
# Make sure the delta is compatible with the target
4060
4059
if rich_root and not target_rich_root:
4061
4060
raise errors.IncompatibleRevision(self.target_repo._format)