setdiscovery: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 08 Aug 2015 19:53:25 -0700
changeset 25973 fb5664eb8414
parent 25972 f279191124f3
child 25974 241a1324a180
setdiscovery: use absolute_import
mercurial/setdiscovery.py
--- a/mercurial/setdiscovery.py	Sat Aug 08 19:58:05 2015 -0700
+++ b/mercurial/setdiscovery.py	Sat Aug 08 19:53:25 2015 -0700
@@ -40,11 +40,20 @@
 classified with it (since all ancestors or descendants will be marked as well).
 """
 
+from __future__ import absolute_import
+
 import collections
-from node import nullid, nullrev
-from i18n import _
 import random
-import util, dagutil
+
+from .i18n import _
+from .node import (
+    nullid,
+    nullrev,
+)
+from . import (
+    dagutil,
+    util,
+)
 
 def _updatesample(dag, nodes, sample, quicksamplesize=0):
     """update an existing sample to match the expected size