Mercurial > hg
changeset 41838:dcbb1b4dc93a
walkfilerevs: rename filerevgen() to filerevs() since it's not a generator
Differential Revision: https://phab.mercurial-scm.org/D6053
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 02 Mar 2019 13:28:17 -0800 |
parents | 82d9728ace95 |
children | 38de3300414f |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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