diff mercurial/hbisect.py @ 6217:fe8dbbe9520d

Avoid importing mercurial.node/mercurial.repo stuff from mercurial.hg
author Joel Rosdahl <joel@rosdahl.net>
date Thu, 06 Mar 2008 22:51:16 +0100
parents 51776e50bc8c
children 683428d1e639 8f256bf98219
line wrap: on
line diff
--- a/mercurial/hbisect.py	Thu Mar 06 22:23:41 2008 +0100
+++ b/mercurial/hbisect.py	Thu Mar 06 22:51:16 2008 +0100
@@ -8,7 +8,8 @@
 # of the GNU General Public License, incorporated herein by reference.
 
 from i18n import _
-import hg, util
+from node import short
+import util
 
 def bisect(changelog, state):
     clparents = changelog.parentrevs
@@ -41,7 +42,7 @@
     bad = changelog.node(badrev)
     if not ancestors: # now we're confused
         raise util.Abort(_("Inconsistent state, %s:%s is good and bad")
-                         % (badrev, hg.short(bad)))
+                         % (badrev, short(bad)))
 
     # build children dict
     children = {}