Mercurial > hg-stable
changeset 28479:d62b00318c19
convert: bzr use absolute_import
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 02 Mar 2016 16:32:52 +0000 |
parents | e6e183687545 |
children | db171c6a1697 |
files | hgext/convert/bzr.py |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/bzr.py Fri Mar 11 13:00:20 2016 +0000 +++ b/hgext/convert/bzr.py Wed Mar 02 16:32:52 2016 +0000 @@ -26,12 +26,14 @@ try: # bazaar imports - from bzrlib import ( - bzrdir, - errors, - revision, - ) - from bzrlib.revisionspec import RevisionSpec + import bzrlib.bzrdir + import bzrlib.errors + import bzrlib.revision + import bzrlib.revisionspec.RevisionSpec + bzrdir = bzrlib.bzrdir + errors = bzrlib.errors + revision = bzrlib.revision + revisionspec = bzrlib.revisionspec except ImportError: pass @@ -66,7 +68,6 @@ # Lightweight checkouts detection is informational but probably # fragile at API level. It should not terminate the conversion. try: - from bzrlib import bzrdir dir = bzrdir.BzrDir.open_containing(path)[0] try: tree = dir.open_workingtree(recommend_upgrade=False) @@ -109,7 +110,7 @@ revid = None for branch in self._bzrbranches(): try: - r = RevisionSpec.from_string(self.revs[0]) + r = revisionspec.RevisionSpec.from_string(self.revs[0]) info = r.in_history(branch) except errors.BzrError: pass