mercurial/revset.py
changeset 22874 e15027cc4cd8
parent 22872 45afc86567ce
child 22875 eed95fe914c5
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()``