hgweb: fix {diff} expansion in JSON template
authorYuya Nishihara <yuya@tcha.org>
Sun, 18 Mar 2018 21:46:20 +0900
changeset 37402 546dc42c3bc4
parent 37401 7d94fe3ea0ac
child 37403 448f7ec247e2
hgweb: fix {diff} expansion in JSON template The same sort of bug as the previous patch. In this case, I decided to fix the JSON template since we aren't ready to fix the {diff} keyword without BC. I'll rework it later.
mercurial/templates/json/map
--- a/mercurial/templates/json/map	Sun Mar 18 21:35:43 2018 +0900
+++ b/mercurial/templates/json/map	Sun Mar 18 21:46:20 2018 +0900
@@ -142,7 +142,7 @@
   "author": {author|utf8|json},
   "parents": [{join(parent%changesetparent, ", ")}],
   "children": [{join(child%changesetparent, ", ")}],
-  "diff": [{join(diff%diffblock, ", ")}]
+  "diff": [{join(diff, ", ")}]
   }'
 diffblock = '\{
   "blockno": {blockno|json},