Mercurial > public > mercurial-scm > hg
diff mercurial/templater.py @ 40475:8fa26f3baf30
templater: add wrapper for a single template mapping
This can be used to nest template mappings without inserting a sequence-like
layer. See the next patch for example.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 19 Oct 2018 21:11:30 +0900 |
parents | 28f974d83c0a |
children | ff8b2886c492 |
line wrap: on
line diff
--- a/mercurial/templater.py Fri Oct 26 21:28:20 2018 +0900 +++ b/mercurial/templater.py Fri Oct 19 21:11:30 2018 +0900 @@ -49,6 +49,10 @@ represents mappings (i.e. a list of dicts), which may have default output format. +mappingdict + represents a single mapping (i.e. a dict), which may have default output + format. + mappedgenerator a lazily-evaluated list of byte strings, which is e.g. a result of % operation.