graphnode: remove usage of `set()`
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 10 Oct 2014 11:27:04 -0700
changeset 22878 890e874cacb6
parent 22877 489d2f3688c9
child 22879 efe5062145c1
graphnode: remove usage of `set()` All smartset classes have fast lookup, so this function will be removed soon.
mercurial/graphmod.py
--- a/mercurial/graphmod.py	Wed Oct 08 02:52:10 2014 -0700
+++ b/mercurial/graphmod.py	Fri Oct 10 11:27:04 2014 -0700
@@ -37,7 +37,7 @@
     lowestrev = revs.min()
     gpcache = {}
 
-    knownrevs = revs.set()
+    knownrevs = revs
     for rev in revs:
         ctx = repo[rev]
         parents = sorted(set([p.rev() for p in ctx.parents()