changeset 48887:3b102efde517 stable

revset: fix the doc of "nodefromfile" This should maybe be called "nodesfromfile", but at least the documentation is correct (it was previously a copy past from follow).
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 03 Jun 2022 17:18:46 +0200
parents b5fe10b3c9f5
children 51b07ac1991c
files mercurial/revset.py
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Thu Jun 02 04:39:49 2022 +0200
+++ b/mercurial/revset.py	Fri Jun 03 17:18:46 2022 +0200
@@ -1338,10 +1338,12 @@
 
 @predicate(b'nodefromfile(path)')
 def nodefromfile(repo, subset, x):
-    """
-    An alias for ``::.`` (ancestors of the working directory's first parent).
-    If file pattern is specified, the histories of files matching given
-    pattern in the revision given by startrev are followed, including copies.
+    """Read a list of nodes from the file at `path`.
+
+    This applies `id(LINE)` to each line of the file.
+
+    This is useful when the amount of nodes you need to specify gets too large
+    for the command line.
     """
     path = getstring(x, _(b"nodefromfile require a file path"))
     listed_rev = set()