Mercurial > public > mercurial-scm > hg-stable
diff hgext/transplant.py @ 28481:ec75c94262a5
transplant: use absolute_import
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 01 Mar 2016 04:53:43 +0000 |
parents | db171c6a1697 |
children | 012411b9940d |
line wrap: on
line diff
--- a/hgext/transplant.py Fri Mar 11 16:07:22 2016 +0000 +++ b/hgext/transplant.py Tue Mar 01 04:53:43 2016 +0000 @@ -13,13 +13,28 @@ Transplanted patches are recorded in .hg/transplant/transplants, as a map from a changeset hash to its hash in the source repository. ''' +from __future__ import absolute_import +import os +import tempfile from mercurial.i18n import _ -import os, tempfile -from mercurial import node as nodemod -from mercurial import bundlerepo, hg, merge, match -from mercurial import patch, revlog, scmutil, util, error, cmdutil -from mercurial import registrar, revset, templatekw, exchange +from mercurial import ( + bundlerepo, + cmdutil, + error, + exchange, + hg, + match, + merge, + node as nodemod, + patch, + registrar, + revlog, + revset, + scmutil, + templatekw, + util, +) class TransplantError(error.Abort): pass