~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/interrepository_implementations/test_fetch.py

First cut at pluralised VersionedFiles. Some rather massive API incompatabilities, primarily because of the difficulty of coherence among competing stores.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
        to_repo.fetch(from_tree.branch.repository, tree_rev)
206
206
        # to_repo should have a file_graph for from_tree.path2id('subtree') and
207
207
        # revid tree_rev.
 
208
        file_id = from_tree.path2id('subtree')
208
209
        to_repo.lock_read()
209
210
        try:
210
 
            file_vf = to_repo.weave_store.get_weave(
211
 
                from_tree.path2id('subtree'), to_repo.get_transaction())
212
 
            self.assertEqual([tree_rev], file_vf.get_ancestry([tree_rev]))
 
211
            self.assertEqual({(file_id, tree_rev):()},
 
212
                to_repo.texts.get_parent_map([(file_id, tree_rev)]))
213
213
        finally:
214
214
            to_repo.unlock()