comparison hgext/convert/bzr.py @ 12063:516b000fbb7e

cleanup: remove unused variables
author Brodie Rao <brodie@bitheap.org>
date Fri, 27 Aug 2010 13:32:40 -0400
parents 33010ff1fd6f
children 6ba2fc0a87ab
comparison
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 '