mercurial/hbisect.py
changeset 8152 08e1baf924ca
parent 8109 496ae1ea4698
child 8225 46293a0c7e9f
--- a/mercurial/hbisect.py	Wed Apr 22 00:56:06 2009 +0200
+++ b/mercurial/hbisect.py	Wed Apr 22 00:57:28 2009 +0200
@@ -24,7 +24,7 @@
     """
 
     clparents = changelog.parentrevs
-    skip = dict.fromkeys([changelog.rev(n) for n in state['skip']])
+    skip = set([changelog.rev(n) for n in state['skip']])
 
     def buildancestors(bad, good):
         # only the earliest bad revision matters
@@ -109,7 +109,7 @@
 
         for c in children.get(rev, []):
             if ancestors[c]:
-                ancestors[c] = dict.fromkeys(ancestors[c] + a).keys()
+                ancestors[c] = list(set(ancestors[c] + a))
             else:
                 ancestors[c] = a + [c]