# HG changeset patch # User Pierre-Yves David # Date 2014-10-08 09:50:20 # Node ID e15027cc4cd8d17ab664d2d9b551c1b796eabf07 # Parent 9fe8e1e8084152b45d3629d9802c8509279c5656 revset-roots: remove usage of `set()` All smartset classes have fast lookup, so this function will be removed soon. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -1478,8 +1478,8 @@ def roots(repo, subset, x): """``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