##// END OF EJS Templates
bisect: use set instead of dict
Benoit Boissinot -
r8463:43186df4 default
parent child Browse files
Show More
@@ -84,11 +84,11 b' def bisect(changelog, state):'
84 # find the best node to test
84 # find the best node to test
85 best_rev = None
85 best_rev = None
86 best_len = -1
86 best_len = -1
87 poison = {}
87 poison = set()
88 for rev in candidates:
88 for rev in candidates:
89 if rev in poison:
89 if rev in poison:
90 for c in children.get(rev, []):
90 for c in children.get(rev, []):
91 poison[c] = True # poison children
91 poison.add(c) # poison children
92 continue
92 continue
93
93
94 a = ancestors[rev] or [rev]
94 a = ancestors[rev] or [rev]
@@ -105,7 +105,7 b' def bisect(changelog, state):'
105
105
106 if y < perfect and rev not in skip: # all downhill from here?
106 if y < perfect and rev not in skip: # all downhill from here?
107 for c in children.get(rev, []):
107 for c in children.get(rev, []):
108 poison[c] = True # poison children
108 poison.add(c) # poison children
109 continue
109 continue
110
110
111 for c in children.get(rev, []):
111 for c in children.get(rev, []):
General Comments 0
You need to be logged in to leave comments. Login now