diff hglib/context.py @ 148:c1b966866ed7

hglib: make all imports absolute (issue4520)
author Brett Cannon <brett@python.org>
date Fri, 13 Mar 2015 14:46:13 -0400
parents fe74d5599539
children 958307b30af3
line wrap: on
line diff
--- a/hglib/context.py	Fri Mar 13 12:28:06 2015 -0500
+++ b/hglib/context.py	Fri Mar 13 14:46:13 2015 -0400
@@ -1,5 +1,6 @@
+import hglib.client  # Circular dependency.
+from hglib import util, templates
 from hglib.error import CommandError
-import client, util, templates
 from hglib.util import b
 
 _nullcset = [b('-1'), b('0000000000000000000000000000000000000000'), b(''),
@@ -13,7 +14,7 @@
         if changeid == b(''):
             changeid = b('.')
         self._repo = repo
-        if isinstance(changeid, client.revision):
+        if isinstance(changeid, hglib.client.revision):
             cset = changeid
         elif changeid == -1:
             cset = _nullcset