~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/repository_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:
69
69
        # disk.
70
70
        knit3_repo = b_bzrdir.open_repository()
71
71
        rev1_tree = knit3_repo.revision_tree('rev1')
72
 
        lines = rev1_tree.get_file_lines(rev1_tree.get_root_id())
 
72
        rev1_tree.lock_read()
 
73
        try:
 
74
            lines = rev1_tree.get_file_lines(rev1_tree.get_root_id())
 
75
        finally:
 
76
            rev1_tree.unlock()
73
77
        self.assertEqual([], lines)
74
78
        b_branch = b_bzrdir.create_branch()
75
79
        b_branch.pull(tree_a.branch)