changeset 22874:e15027cc4cd8

revset-roots: remove usage of `set()` All smartset classes have fast lookup, so this function will be removed soon.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 08 Oct 2014 02:50:20 -0700
parents 9fe8e1e80841
children eed95fe914c5
files mercurial/revset.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Fri Oct 10 13:31:00 2014 -0700
+++ b/mercurial/revset.py	Wed Oct 08 02:50:20 2014 -0700
@@ -1478,8 +1478,8 @@
     """``roots(set)``
     Changesets in set with no parent changeset in set.
     """
-    s = getset(repo, spanset(repo), x).set()
-    subset = baseset([r for r in s if r in subset.set()])
+    s = getset(repo, spanset(repo), x)
+    subset = baseset([r for r in s if r in subset])
     cs = _children(repo, subset, s)
     return subset - cs