~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-02-23 15:03:27 UTC
  • mfrom: (5662.2.7 branch-format-registry)
  • Revision ID: pqm@pqm.ubuntu.com-20110223150327-d9k3rvhhy8ij3t4j
(jelmer) Add a BranchFormatRegistry. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1957
1957
 
1958
1958
    def get_branch_format(self):
1959
1959
        if self._branch_format is None:
1960
 
            from bzrlib.branch import BranchFormat
1961
 
            self._branch_format = BranchFormat.get_default_format()
 
1960
            from bzrlib.branch import format_registry as branch_format_registry
 
1961
            self._branch_format = branch_format_registry.get_default()
1962
1962
        return self._branch_format
1963
1963
 
1964
1964
    def set_branch_format(self, format):