Make bisect extension work with python2.3
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 08 Mar 2006 05:31:20 +0100
changeset 1856 b8bd84ad9b67
parent 1855 0ba9dee8cfbd
child 1860 97f07d311a50
Make bisect extension work with python2.3
contrib/hbisect.py
--- 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))