walkfilerevs: rename filerevgen() to filerevs() since it's not a generator
authorMartin von Zweigbergk <martinvonz@google.com>
Sat, 02 Mar 2019 13:28:17 -0800
changeset 41838 dcbb1b4dc93a
parent 41837 82d9728ace95
child 41839 38de3300414f
walkfilerevs: rename filerevgen() to filerevs() since it's not a generator Differential Revision: https://phab.mercurial-scm.org/D6053
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Sat Mar 02 13:15:53 2019 -0800
+++ b/mercurial/cmdutil.py	Sat Mar 02 13:28:17 2019 -0800
@@ -1762,7 +1762,7 @@
     wanted = set()
     copies = []
     minrev, maxrev = min(revs), max(revs)
-    def filerevgen(filelog, last):
+    def filerevs(filelog, last):
         """
         Only files, no patterns.  Check the history of each file.
 
@@ -1825,7 +1825,7 @@
         ancestors = {filelog.linkrev(last)}
 
         # iterate from latest to oldest revision
-        for rev, flparentlinkrevs, copied in filerevgen(filelog, last):
+        for rev, flparentlinkrevs, copied in filerevs(filelog, last):
             if not follow:
                 if rev > maxrev:
                     continue