D6053: walkfilerevs: rename filerevgen() to filerevs() since it's not a generator
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Mar 2 23:33:03 UTC 2019
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
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