bisect: faster merging
authorMatt Mackall <mpm@selenic.com>
Mon, 31 Dec 2007 18:20:34 -0600
changeset 5774 c850a8640981
parent 5773 2f6105ab4c54
child 5775 2dd202a6e15b
bisect: faster merging
hgext/hbisect.py
--- a/hgext/hbisect.py	Mon Dec 31 18:20:34 2007 -0600
+++ b/hgext/hbisect.py	Mon Dec 31 18:20:34 2007 -0600
@@ -84,9 +84,7 @@
 
         for c in children.get(rev, []):
             if ancestors[c]:
-                s = dict.fromkeys(ancestors[c])
-                s.update(dict.fromkeys(a))
-                ancestors[c] = s.keys()
+                ancestors[c] = dict.fromkeys(ancestors[c] + a).keys()
             else:
                 ancestors[c] = a + [c]