/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

MergeĀ converterĀ parameterĀ usage

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    )
57
57
 
58
58
 
59
 
def return_parameter(something):
 
59
def return_parameter(testcase, something):
60
60
    """A trivial thunk to return its input."""
61
61
    return something
62
62
 
63
63
 
64
 
def revision_tree_from_workingtree(tree):
 
64
def revision_tree_from_workingtree(testcase, tree):
65
65
    """Create a revision tree from a working tree."""
66
66
    revid = tree.commit('save tree', allow_pointless=True, recursive=None)
67
67
    return tree.branch.repository.revision_tree(revid)
68
68
 
69
69
 
70
 
def _dirstate_tree_from_workingtree(tree):
 
70
def _dirstate_tree_from_workingtree(testcase, tree):
71
71
    revid = tree.commit('save tree', allow_pointless=True)
72
72
    return tree.basis_tree()
73
73
 
94
94
        # convert that to the final shape
95
95
        if converter is None:
96
96
            converter = self.workingtree_to_test_tree
97
 
        return converter(tree)
 
97
        return converter(self, tree)
98
98
 
99
99
    def get_tree_no_parents_no_content(self, empty_tree, converter=None):
100
100
        """Make a tree with no parents and no contents from empty_tree.