mercurial/templatekw.py
changeset 39394 83f8f7b9fa60
parent 38986 390287321b4b
child 39395 5b1d406b39f1
--- 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):