changeset 37402:546dc42c3bc4

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.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 18 Mar 2018 21:46:20 +0900
parents 7d94fe3ea0ac
children 448f7ec247e2
files mercurial/templates/json/map
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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},