mercurial/revset.py
changeset 49279 127d33e63d1a
parent 49248 63fd0282ad40
parent 49276 3b102efde517
child 49447 6dbe74669eba
--- a/mercurial/revset.py	Thu Jun 02 23:57:56 2022 +0200
+++ b/mercurial/revset.py	Wed Jun 08 15:46:04 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()