~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Make make_branch_builder available to all per_workingtree tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
"""
24
24
 
25
25
from bzrlib import (
 
26
    branchbuilder,
26
27
    errors,
27
28
    tests,
28
29
    workingtree,
58
59
        made_control.create_branch()
59
60
        return self.workingtree_format.initialize(made_control)
60
61
 
 
62
    def make_branch_builder(self, relpath, format=None):
 
63
        if format is None:
 
64
            format = self.bzrdir_format
 
65
        builder = branchbuilder.BranchBuilder(self.get_transport(),
 
66
                                              format=format)
 
67
        return builder
 
68
 
61
69
 
62
70
def workingtree_formats():
63
71
    """The known working tree formats."""