Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 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 | 45afc86567ce |
children | eed95fe914c5 |
comparison
equal
deleted
inserted
replaced
22873:9fe8e1e80841 | 22874:e15027cc4cd8 |
---|---|
1476 | 1476 |
1477 def roots(repo, subset, x): | 1477 def roots(repo, subset, x): |
1478 """``roots(set)`` | 1478 """``roots(set)`` |
1479 Changesets in set with no parent changeset in set. | 1479 Changesets in set with no parent changeset in set. |
1480 """ | 1480 """ |
1481 s = getset(repo, spanset(repo), x).set() | 1481 s = getset(repo, spanset(repo), x) |
1482 subset = baseset([r for r in s if r in subset.set()]) | 1482 subset = baseset([r for r in s if r in subset]) |
1483 cs = _children(repo, subset, s) | 1483 cs = _children(repo, subset, s) |
1484 return subset - cs | 1484 return subset - cs |
1485 | 1485 |
1486 def secret(repo, subset, x): | 1486 def secret(repo, subset, x): |
1487 """``secret()`` | 1487 """``secret()`` |