Mercurial > public > mercurial-scm > hg
diff mercurial/templatefuncs.py @ 39367:83f8f7b9fa60
templatekw: alias {file} of files list to {path}
This is a part of the name unification. All {path}s will be changed to
repository-absolute (i.e. canonical) paths.
https://www.mercurial-scm.org/wiki/GenericTemplatingPlan#Dictionary
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 05 Aug 2018 16:14:18 +0900 |
parents | a2a5d4ad5276 |
children | 9458dbfa7f33 |
line wrap: on
line diff
--- a/mercurial/templatefuncs.py Wed Aug 29 18:52:09 2018 +0300 +++ b/mercurial/templatefuncs.py Sun Aug 05 16:14:18 2018 +0900 @@ -140,7 +140,7 @@ ctx = context.resource(mapping, 'ctx') m = ctx.match([raw]) files = list(ctx.matches(m)) - return templateutil.compatlist(context, mapping, "file", files) + return templateutil.compatfileslist(context, mapping, "file", files) @templatefunc('fill(text[, width[, initialident[, hangindent]]])') def fill(context, mapping, args):