##// END OF EJS Templates
hbisect: use set.update for bulk updates
Martin Geisler -
r8482:fc27c91f default
parent child Browse files
Show More
@@ -87,8 +87,8 def bisect(changelog, state):
87 poison = set()
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 # poison children
91 poison.add(c) # poison children
91 poison.update(children.get(rev, []))
92 continue
92 continue
93
93
94 a = ancestors[rev] or [rev]
94 a = ancestors[rev] or [rev]
@@ -104,8 +104,8 def bisect(changelog, state):
104 break
104 break
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 # poison children
108 poison.add(c) # poison children
108 poison.update(children.get(rev, []))
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