232
232
def _fetch_inventory_weave(self, revs, pb):
233
233
pb.update("fetch inventory", 0, 2)
234
234
to_weave = self.to_repository.inventories
235
child_pb = bzrlib.ui.ui_factory.nested_progress_bar()
237
# just merge, this is optimisable and its means we don't
238
# copy unreferenced data such as not-needed inventories.
239
pb.update("fetch inventory", 1, 3)
240
from_weave = self.from_repository.inventories
241
pb.update("fetch inventory", 2, 3)
242
# we fetch only the referenced inventories because we do not
243
# know for unselected inventories whether all their required
244
# texts are present in the other repository - it could be
246
to_weave.insert_record_stream(from_weave.get_record_stream(
247
[(rev_id,) for rev_id in revs],
248
self.to_repository._fetch_order,
249
not self.to_repository._fetch_uses_deltas))
235
# just merge, this is optimisable and its means we don't
236
# copy unreferenced data such as not-needed inventories.
237
pb.update("fetch inventory", 1, 3)
238
from_weave = self.from_repository.inventories
239
pb.update("fetch inventory", 2, 3)
240
# we fetch only the referenced inventories because we do not
241
# know for unselected inventories whether all their required
242
# texts are present in the other repository - it could be
244
to_weave.insert_record_stream(from_weave.get_record_stream(
245
[(rev_id,) for rev_id in revs],
246
self.to_repository._fetch_order,
247
not self.to_repository._fetch_uses_deltas))
253
249
def _fetch_revision_texts(self, revs, pb):
254
250
# fetch signatures first and then the revision texts