Part of bzrlib.tests.per_interrepository.test_fetch View In Hierarchy
Inherited from TestCaseWithInterRepository:
Method | setUp | Undocumented |
Method | get_default_format | Undocumented |
Method | make_branch | Undocumented |
Method | make_bzrdir | Undocumented |
Method | make_repository | Undocumented |
Method | make_to_repository | Undocumented |
This test tests that we do fetch a file text created in a revision not being fetched, but referenced from the revision we are fetching when the adjacent revisions to the one being fetched do not reference that text.
This is necessary so that the server is able to determine the file-ids altered by all revisions it contains, which means that it needs both the inventory for any revision it has, and the inventories of all that revision's parents.
However, we should also skip any revisions which are ghosts in the parents.
Specifically, fetch will copy the parent inventories from the source for which the corresponding revisions are not present. This will happen even when the source repository has no fallbacks configured (as is the case during upgrade).