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

login
register
mail settings
Submitter phabricator
Date March 3, 2019, 9:34 a.m.
Message ID <fb4c222256abc8d667e8d19cdb8135a1@localhost.localdomain>
Download mbox | patch
Permalink /patch/39019/
State Not Applicable
Headers show

Comments

phabricator - March 3, 2019, 9:34 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdcbb1b4dc93a: walkfilerevs: rename filerevgen() to filerevs() since it&#039;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




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

Patch

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