mercurial/revset.py
changeset 49279 127d33e63d1a
parent 49248 63fd0282ad40
parent 49276 3b102efde517
child 49447 6dbe74669eba
equal deleted inserted replaced
49275:c6a3243567b6 49279:127d33e63d1a
  1336     return subset & rs
  1336     return subset & rs
  1337 
  1337 
  1338 
  1338 
  1339 @predicate(b'nodefromfile(path)')
  1339 @predicate(b'nodefromfile(path)')
  1340 def nodefromfile(repo, subset, x):
  1340 def nodefromfile(repo, subset, x):
  1341     """
  1341     """Read a list of nodes from the file at `path`.
  1342     An alias for ``::.`` (ancestors of the working directory's first parent).
  1342 
  1343     If file pattern is specified, the histories of files matching given
  1343     This applies `id(LINE)` to each line of the file.
  1344     pattern in the revision given by startrev are followed, including copies.
  1344 
       
  1345     This is useful when the amount of nodes you need to specify gets too large
       
  1346     for the command line.
  1345     """
  1347     """
  1346     path = getstring(x, _(b"nodefromfile require a file path"))
  1348     path = getstring(x, _(b"nodefromfile require a file path"))
  1347     listed_rev = set()
  1349     listed_rev = set()
  1348     try:
  1350     try:
  1349         with pycompat.open(path, 'rb') as f:
  1351         with pycompat.open(path, 'rb') as f: