mercurial/revset.py
changeset 23003 62d19ce9d7b6
parent 22999 88ac1be3f767
child 23004 30b602b2c340
equal deleted inserted replaced
23002:2920a96f5839 23003:62d19ce9d7b6
   345 def _ancestors(repo, subset, x, followfirst=False):
   345 def _ancestors(repo, subset, x, followfirst=False):
   346     heads = getset(repo, spanset(repo), x)
   346     heads = getset(repo, spanset(repo), x)
   347     if not heads:
   347     if not heads:
   348         return baseset()
   348         return baseset()
   349     s = _revancestors(repo, heads, followfirst)
   349     s = _revancestors(repo, heads, followfirst)
   350     return subset.filter(s.__contains__)
   350     return subset & s
   351 
   351 
   352 def ancestors(repo, subset, x):
   352 def ancestors(repo, subset, x):
   353     """``ancestors(set)``
   353     """``ancestors(set)``
   354     Changesets that are ancestors of a changeset in set.
   354     Changesets that are ancestors of a changeset in set.
   355     """
   355     """