~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: jelmer at samba
  • Date: 2011-10-11 10:10:23 UTC
  • mto: This revision was merged to the branch mainline in revision 6214.
  • Revision ID: jelmer@samba.org-20111011101023-1n13137romqgtpl8
use classmethods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    ui,
53
53
    )
54
54
from bzrlib.branch import Branch
55
 
from bzrlib.bzrdir import BzrDir
 
55
from bzrlib.controldir import ControlDir
56
56
from bzrlib.revision import NULL_REVISION
57
57
from bzrlib.trace import note
58
58
from bzrlib.workingtree import WorkingTree
386
386
    """
387
387
    try:
388
388
        base_tree, branch, repo, relpath = \
389
 
                        BzrDir.open_containing_tree_branch_or_repository(path)
 
389
                        ControlDir.open_containing_tree_branch_or_repository(path)
390
390
    except errors.NotBranchError:
391
391
        base_tree = branch = repo = None
392
392