help: clarify ancestors() and descendants() include given set (issue5594)
authorYuya Nishihara <yuya@tcha.org>
Sun, 18 Jun 2017 22:46:56 +0900
changeset 32923 2851b24eecc4
parent 32922 582080a4a812
child 32924 23b07333a8b2
help: clarify ancestors() and descendants() include given set (issue5594) Also unified "a changeset" to "changesets".
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)