hgext/convert/bzr.py
changeset 12063 516b000fbb7e
parent 11134 33010ff1fd6f
child 15461 6ba2fc0a87ab
equal deleted inserted replaced
12062:c327bfa5e831 12063:516b000fbb7e
    59             from bzrlib import bzrdir
    59             from bzrlib import bzrdir
    60             dir = bzrdir.BzrDir.open_containing(path)[0]
    60             dir = bzrdir.BzrDir.open_containing(path)[0]
    61             try:
    61             try:
    62                 tree = dir.open_workingtree(recommend_upgrade=False)
    62                 tree = dir.open_workingtree(recommend_upgrade=False)
    63                 branch = tree.branch
    63                 branch = tree.branch
    64             except (errors.NoWorkingTree, errors.NotLocalUrl), e:
    64             except (errors.NoWorkingTree, errors.NotLocalUrl):
    65                 tree = None
    65                 tree = None
    66                 branch = dir.open_branch()
    66                 branch = dir.open_branch()
    67             if (tree is not None and tree.bzrdir.root_transport.base !=
    67             if (tree is not None and tree.bzrdir.root_transport.base !=
    68                 branch.bzrdir.root_transport.base):
    68                 branch.bzrdir.root_transport.base):
    69                 self.ui.warn(_('warning: lightweight checkouts may cause '
    69                 self.ui.warn(_('warning: lightweight checkouts may cause '