--- a/tests/test-command-template.t Sat Apr 22 21:50:51 2017 +0900
+++ b/tests/test-command-template.t Sat Jun 17 16:32:20 2017 +0900
@@ -257,6 +257,20 @@
summary: third
+Test docheader, docfooter and separator in template map
+
+ $ cat <<'EOF' > map-myjson
+ > docheader = '\{\n'
+ > docfooter = '\n}\n'
+ > separator = ',\n'
+ > changeset = ' {dict(rev, node|short)|json}'
+ > EOF
+ $ hg log -l2 -T./map-myjson
+ {
+ {"node": "95c24699272e", "rev": 8},
+ {"node": "29114dbae42b", "rev": 7}
+ }
+
Template should precede style option
$ hg log -l1 --style default -T '{rev}\n'