# HG changeset patch # User Yuya Nishihara # Date 1497793616 -32400 # Node ID 2851b24eecc483ce1546d63d155fa2e9250e3f44 # Parent 582080a4a812ac55ce6b4082ff183edd3c64258e help: clarify ancestors() and descendants() include given set (issue5594) Also unified "a changeset" to "changesets". diff -r 582080a4a812 -r 2851b24eecc4 mercurial/revset.py --- a/mercurial/revset.py Sun Feb 19 19:37:14 2017 +0900 +++ b/mercurial/revset.py Sun Jun 18 22:46:56 2017 +0900 @@ -247,7 +247,8 @@ @predicate('ancestors(set)', safe=True) def ancestors(repo, subset, x): - """Changesets that are ancestors of a changeset in set. + """Changesets that are ancestors of changesets in set, including the + given changesets themselves. """ return _ancestors(repo, subset, x) @@ -592,7 +593,8 @@ @predicate('descendants(set)', safe=True) def descendants(repo, subset, x): - """Changesets which are descendants of changesets in set. + """Changesets which are descendants of changesets in set, including the + given changesets themselves. """ return _descendants(repo, subset, x)