# HG changeset patch # User Gregory Szorc # Date 1439085156 25200 # Node ID 130c0b83e963825d1c700bfd6ea64fbcdf3b3835 # Parent e194ada8d45fa08811fd148f000e792732cb98cc hg: use absolute_import diff -r e194ada8d45f -r 130c0b83e963 mercurial/hg.py --- a/mercurial/hg.py Sat Aug 08 18:34:37 2015 -0700 +++ b/mercurial/hg.py Sat Aug 08 18:52:36 2015 -0700 @@ -6,17 +6,41 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -from i18n import _ -from lock import release -from node import nullid +from __future__ import absolute_import + +import errno +import os +import shutil + +from .i18n import _ +from .node import nullid -import localrepo, bundlerepo, unionrepo, httppeer, sshpeer, statichttprepo -import bookmarks, lock, util, extensions, error, node, scmutil, phases, url -import cmdutil, discovery, repoview, exchange -import ui as uimod -import merge as mergemod -import verify as verifymod -import errno, os, shutil +from . import ( + bookmarks, + bundlerepo, + cmdutil, + discovery, + error, + exchange, + extensions, + httppeer, + localrepo, + lock, + merge as mergemod, + node, + phases, + repoview, + scmutil, + sshpeer, + statichttprepo, + ui as uimod, + unionrepo, + url, + util, + verify as verifymod, +) + +release = lock.release def _local(path): path = util.expandpath(util.urllocalpath(path))