mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
revset-roots: remove usage of set()
All smartset classes have fast lookup, so this function will be removed soon.
This commit is contained in:
parent
256f11e0d3
commit
2c5bccb146
@ -1478,8 +1478,8 @@ def roots(repo, subset, x):
|
|||||||
"""``roots(set)``
|
"""``roots(set)``
|
||||||
Changesets in set with no parent changeset in set.
|
Changesets in set with no parent changeset in set.
|
||||||
"""
|
"""
|
||||||
s = getset(repo, spanset(repo), x).set()
|
s = getset(repo, spanset(repo), x)
|
||||||
subset = baseset([r for r in s if r in subset.set()])
|
subset = baseset([r for r in s if r in subset])
|
||||||
cs = _children(repo, subset, s)
|
cs = _children(repo, subset, s)
|
||||||
return subset - cs
|
return subset - cs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user