changeset 32905:2851b24eecc4

help: clarify ancestors() and descendants() include given set (issue5594) Also unified "a changeset" to "changesets".
author Yuya Nishihara <yuya@tcha.org>
date Sun, 18 Jun 2017 22:46:56 +0900
parents 582080a4a812
children 23b07333a8b2
files mercurial/revset.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)