diff mercurial/templater.py @ 37499:75c13343cf38

templater: wrap result of '%' operation so it never looks like a thunk This fixes min/max()/json() of map result. Before, it was taken as a lazy byte string and stringified by evalfuncarg().
author Yuya Nishihara <yuya@tcha.org>
date Sun, 18 Mar 2018 23:36:52 +0900
parents 0b64416224d9
children 0f4de9c27973
line wrap: on
line diff
--- a/mercurial/templater.py	Thu Jan 18 12:54:01 2018 +0100
+++ b/mercurial/templater.py	Sun Mar 18 23:36:52 2018 +0900
@@ -48,6 +48,10 @@
 mappinggenerator, mappinglist
     represents mappings (i.e. a list of dicts), which may have default
     output format.
+
+mappedgenerator
+    a lazily-evaluated list of byte strings, which is e.g. a result of %
+    operation.
 """
 
 from __future__ import absolute_import, print_function