mercurial/hbisect.py
branchstable
changeset 18463 07771e233cf1
parent 18358 93293813d753
child 20034 1e5b38a919dd
child 20094 06ef32c3b4bb
--- a/mercurial/hbisect.py	Mon Jan 21 19:40:15 2013 +0100
+++ b/mercurial/hbisect.py	Tue Jan 22 03:23:02 2013 +0100
@@ -38,7 +38,7 @@
         # set nodes descended from goodrevs
         for rev in goodrevs:
             ancestors[rev] = []
-        for rev in xrange(goodrev + 1, len(changelog)):
+        for rev in changelog.revs(goodrev + 1):
             for prev in clparents(rev):
                 if ancestors[prev] == []:
                     ancestors[rev] = []
@@ -46,7 +46,7 @@
         # clear good revs from array
         for rev in goodrevs:
             ancestors[rev] = None
-        for rev in xrange(len(changelog), goodrev, -1):
+        for rev in changelog.revs(len(changelog), goodrev):
             if ancestors[rev] is None:
                 for prev in clparents(rev):
                     ancestors[prev] = None