4210
4212
self.to_format.rich_root_data)
4212
4214
def _get_inventory_stream(self, revision_ids, missing=False):
4214
4215
from_format = self.from_repository._format
4215
4216
if (from_format.supports_chks and self.to_format.supports_chks
4216
4217
and (from_format._serializer == self.to_format._serializer)):
4217
4218
# Both sides support chks, and they use the same serializer, so it
4218
4219
# is safe to transmit the chk pages and inventory pages across
4220
4222
return self._get_chk_inventory_stream(revision_ids)
4221
4223
elif (not from_format.supports_chks):
4222
4224
# Source repository doesn't support chks. So we can transmit the
4223
4225
# inventories 'as-is' and either they are just accepted on the
4224
4226
# target, or the Sink will properly convert it.
4228
4231
# XXX: Hack to make not-chk->chk fetch: copy the inventories as