# HG changeset patch # User Thomas Arendsen Hein # Date 1141792280 -3600 # Node ID b8bd84ad9b67a36cd0cce242528ed974bb1746f6 # Parent 0ba9dee8cfbdbe4d256418090b68b8c4ba56055f Make bisect extension work with python2.3 diff -r 0ba9dee8cfbd -r b8bd84ad9b67 contrib/hbisect.py --- a/contrib/hbisect.py Wed Mar 08 05:16:36 2006 +0100 +++ b/contrib/hbisect.py Wed Mar 08 05:31:20 2006 +0100 @@ -113,7 +113,8 @@ 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))