~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branchbuilder.py

  • Committer: Vincent Ladeuil
  • Date: 2011-09-27 11:48:50 UTC
  • mto: This revision was merged to the branch mainline in revision 6173.
  • Revision ID: v.ladeuil+lp@free.fr-20110927114850-338r2mns0138klv0
Global options respect their hidden attribute

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Utility for create branches with particular contents."""
18
18
 
19
19
from bzrlib import (
20
 
    controldir,
 
20
    bzrdir,
21
21
    commit,
22
22
    errors,
23
23
    memorytree,
64
64
            If the path of the transport does not exist but its parent does
65
65
            it will be created.
66
66
        :param format: Either a BzrDirFormat, or the name of a format in the
67
 
            controldir format registry for the branch to be built.
 
67
            bzrdir format registry for the branch to be built.
68
68
        :param branch: An already constructed branch to use.  This param is
69
69
            mutually exclusive with the transport and format params.
70
70
        """
82
82
            if format is None:
83
83
                format = 'default'
84
84
            if isinstance(format, str):
85
 
                format = controldir.format_registry.make_bzrdir(format)
86
 
            self._branch = controldir.ControlDir.create_branch_convenience(
 
85
                format = bzrdir.format_registry.make_bzrdir(format)
 
86
            self._branch = bzrdir.BzrDir.create_branch_convenience(
87
87
                transport.base, format=format, force_new_tree=False)
88
88
        self._tree = None
89
89