diff hgext/hbisect.py @ 5774:c850a8640981

bisect: faster merging
author Matt Mackall <mpm@selenic.com>
date Mon, 31 Dec 2007 18:20:34 -0600
parents 2f6105ab4c54
children
line wrap: on
line diff
--- a/hgext/hbisect.py
+++ b/hgext/hbisect.py
@@ -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]