discovery: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:07:11 -0700
changeset 25944 337d010f31e6
parent 25943 3beed01daff9
child 25945 147bd9e238a1
discovery: use absolute_import
mercurial/discovery.py
--- a/mercurial/discovery.py	Sat Aug 08 19:05:28 2015 -0700
+++ b/mercurial/discovery.py	Sat Aug 08 19:07:11 2015 -0700
@@ -5,10 +5,23 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from node import nullid, short
-from i18n import _
-import util, setdiscovery, treediscovery, phases, obsolete, bookmarks
-import branchmap
+from __future__ import absolute_import
+
+from .i18n import _
+from .node import (
+    nullid,
+    short,
+)
+
+from . import (
+    bookmarks,
+    branchmap,
+    obsolete,
+    phases,
+    setdiscovery,
+    treediscovery,
+    util,
+)
 
 def findcommonincoming(repo, remote, heads=None, force=False):
     """Return a tuple (common, anyincoming, heads) used to identify the common