/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/tree_implementations/__init__.py

Add a new method ``Tree.revision_tree`` which allows access to cached
trees for arbitrary revisions. This allows the in development dirstate
tree format to provide access to the callers to cached copies of 
inventory data which are cheaper to access than inventories from the
repository. (Robert Collins, Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
    def _make_abc_tree(self, tree):
92
92
        """setup an abc content tree."""
93
93
        files = ['a', 'b/', 'b/c']
94
 
        self.build_tree(files, transport=tree.bzrdir.root_transport)
 
94
        self.build_tree(files, line_endings='binary',
 
95
                        transport=tree.bzrdir.root_transport)
95
96
        tree.add(files, ['a-id', 'b-id', 'c-id'])
96
97
 
97
98
    def get_tree_no_parents_abc_content(self, tree, converter=None):
189
190
    result = TestSuite()
190
191
    test_tree_implementations = [
191
192
        'bzrlib.tests.tree_implementations.test_test_trees',
 
193
        'bzrlib.tests.tree_implementations.test_revision_tree',
192
194
        ]
193
195
    adapter = TreeTestProviderAdapter(
194
196
        default_transport,