--- a/mercurial/templatekw.py Wed Aug 29 18:52:09 2018 +0300
+++ b/mercurial/templatekw.py Sun Aug 05 16:14:18 2018 +0900
@@ -297,7 +297,7 @@
if 'files' not in revcache:
revcache['files'] = ctx.p1().status(ctx)[:3]
files = revcache['files'][index]
- return compatlist(context, mapping, name, files, element='file')
+ return templateutil.compatfileslist(context, mapping, name, files)
@templatekeyword('file_adds', requires={'ctx', 'revcache'})
def showfileadds(context, mapping):
@@ -359,7 +359,7 @@
changeset.
"""
ctx = context.resource(mapping, 'ctx')
- return compatlist(context, mapping, 'file', ctx.files())
+ return templateutil.compatfileslist(context, mapping, 'file', ctx.files())
@templatekeyword('graphnode', requires={'repo', 'ctx'})
def showgraphnode(context, mapping):