# HG changeset patch # User Thomas Arendsen Hein # Date 1141792280 -3600 # Node ID b8bd84ad9b67a36cd0cce242528ed974bb1746f6 # Parent 0ba9dee8cfbdbe4d256418090b68b8c4ba56055f Make bisect extension work with python2.3 diff --git a/contrib/hbisect.py b/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))