contrib/hbisect.py
changeset 1856 b8bd84ad9b67
parent 1855 0ba9dee8cfbd
child 1861 65949d1c9bf7
--- a/contrib/hbisect.py
+++ b/contrib/hbisect.py
@@ -113,7 +113,8 @@ class bisect(object):
         cl = self.repo.changelog
         if not stop:
             stop = sets.Set([])
-            for g in reversed(self.goodrevs):
+            for i in xrange(len(self.goodrevs)-1, -1, -1):
+                g = self.goodrevs[i]
                 if g in stop:
                     continue
                 stop.update(cl.reachable(g))