~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/check.py

  • Committer: Patch Queue Manager
  • Date: 2013-05-20 17:46:29 UTC
  • mfrom: (6573.1.1 bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20130520174629-dp7zujtuclvomuzd
(jameinel) Fix CVE 2013-2009. Avoid allowing multiple wildcards in a single
 SSL cert hostname segment. (Andrew Starr-Bochicchio)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  indicating that the revision was found/not found.
48
48
"""
49
49
 
 
50
from __future__ import absolute_import
 
51
 
50
52
from bzrlib import (
51
53
    errors,
52
54
    ui,
53
55
    )
54
56
from bzrlib.branch import Branch
55
 
from bzrlib.bzrdir import BzrDir
 
57
from bzrlib.controldir import ControlDir
56
58
from bzrlib.revision import NULL_REVISION
57
59
from bzrlib.trace import note
58
60
from bzrlib.workingtree import WorkingTree
386
388
    """
387
389
    try:
388
390
        base_tree, branch, repo, relpath = \
389
 
                        BzrDir.open_containing_tree_branch_or_repository(path)
 
391
                        ControlDir.open_containing_tree_branch_or_repository(path)
390
392
    except errors.NotBranchError:
391
393
        base_tree = branch = repo = None
392
394