mercurial/hbisect.py
changeset 8482 fc27c91fff2c
parent 8463 43186df4bb8e
child 9583 0491be4448bf
--- a/mercurial/hbisect.py	Sun May 17 16:56:53 2009 +0200
+++ b/mercurial/hbisect.py	Sun May 17 16:57:12 2009 +0200
@@ -87,8 +87,8 @@
     poison = set()
     for rev in candidates:
         if rev in poison:
-            for c in children.get(rev, []):
-                poison.add(c) # poison children
+            # poison children
+            poison.update(children.get(rev, []))
             continue
 
         a = ancestors[rev] or [rev]
@@ -104,8 +104,8 @@
                 break
 
         if y < perfect and rev not in skip: # all downhill from here?
-            for c in children.get(rev, []):
-                poison.add(c) # poison children
+            # poison children
+            poison.update(children.get(rev, []))
             continue
 
         for c in children.get(rev, []):