comparison mercurial/hbisect.py @ 7557:21233de9c053

Circumvent removal of valid bisect candidates due to previously skipped ones As reported in issue 1445: A valid candidate revision for a bisect test is not considered for testing due to its skipped ancestor. If this revision is the only untested one left an assertion error occurs.
author Bernhard Leiner <bleiner@gmail.com>
date Sat, 27 Dec 2008 19:05:26 +0100
parents e1afb50ec2aa
children afddc32b2b3f
comparison
equal deleted inserted replaced
7552:a9221c7f51a4 7557:21233de9c053
100 best_len = value 100 best_len = value
101 best_rev = rev 101 best_rev = rev
102 if value == perfect: # found a perfect candidate? quit early 102 if value == perfect: # found a perfect candidate? quit early
103 break 103 break
104 104
105 if y < perfect: # all downhill from here? 105 if y < perfect and rev not in skip: # all downhill from here?
106 for c in children.get(rev, []): 106 for c in children.get(rev, []):
107 poison[c] = True # poison children 107 poison[c] = True # poison children
108 continue 108 continue
109 109
110 for c in children.get(rev, []): 110 for c in children.get(rev, []):