revset: reword commonancestor()'s help stable
authorValentin Gatien-Baron <vgatien-baron@janestreet.com>
Tue, 25 Sep 2018 16:18:43 -0400
branchstable
changeset 39803 0561e69ed9f1
parent 39802 3bc4fce0167f
child 39804 84c61c1593c4
revset: reword commonancestor()'s help The new version seems a bit more consistent with other doc comments, and feels clearer to me (doesn't explain "commonancestors(set)" as "common ancestors of set"). Differential Revision: https://phab.mercurial-scm.org/D4740
mercurial/revset.py
--- a/mercurial/revset.py	Tue Sep 25 16:14:57 2018 -0400
+++ b/mercurial/revset.py	Tue Sep 25 16:18:43 2018 -0400
@@ -623,7 +623,7 @@
 
 @predicate('commonancestors(set)', safe=True)
 def commonancestors(repo, subset, x):
-    """Returns all common ancestors of the set.
+    """Changesets that are ancestors of every changeset in set.
     """
     startrevs = getset(repo, fullreposet(repo), x, order=anyorder)
     if not startrevs: