448
443
# We build a broken revision so that we can test the fetch code dies
449
444
# properly. So copy the inventory and revision, but not the text.
450
445
with to_repo.lock_write():
453
447
inv = tree.branch.repository.get_inventory(rev1)
454
448
to_repo.add_inventory(rev1, inv, [])
455
449
rev = tree.branch.repository.get_revision(rev1)
456
450
to_repo.add_revision(rev1, rev, inv=inv)
457
451
self.disable_commit_write_group_paranoia(to_repo)
463
453
# Implementations can either ensure that the target of the delta is
464
454
# reconstructable, or raise an exception (which stream based copies