equal
deleted
inserted
replaced
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 """ |