# HG changeset patch # User Martin Geisler # Date 1242572232 -7200 # Node ID fc27c91fff2c3f014faa24ca3134338772bee8e8 # Parent a9dab5a0f85b1faf7dd45b3ba351f037717ed05e hbisect: use set.update for bulk updates diff -r a9dab5a0f85b -r fc27c91fff2c mercurial/hbisect.py --- 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, []):