D6053: walkfilerevs: rename filerevgen() to filerevs() since it's not a generator

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sun Mar 3 04:34:53 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdcbb1b4dc93a: walkfilerevs: rename filerevgen() to filerevs() since it's not a generator (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6053?vs=14302&id=14318

REVISION DETAIL
  https://phab.mercurial-scm.org/D6053

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -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



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list