changeset 5774:c850a8640981

bisect: faster merging
author Matt Mackall <mpm@selenic.com>
date Mon, 31 Dec 2007 18:20:34 -0600
parents 2f6105ab4c54
children 2dd202a6e15b
files hgext/hbisect.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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]