hbisect: confine loop to the relevant interval
In this context we know that ancestors[rev] == None for all rev <= goodrev,
so looping further back is unnecessary (and confusing).
--- a/mercurial/hbisect.py Mon Jul 18 14:57:22 2011 -0500
+++ b/mercurial/hbisect.py Sat Jul 16 12:22:40 2011 +0200
@@ -45,7 +45,7 @@
# clear good revs from array
for node in goodrevs:
ancestors[node] = None
- for rev in xrange(len(changelog), -1, -1):
+ for rev in xrange(len(changelog), goodrev, -1):
if ancestors[rev] is None:
for prev in clparents(rev):
ancestors[prev] = None