# HG changeset patch # User Yuya Nishihara # Date 1521377180 -32400 # Node ID 546dc42c3bc4797c230360f83d788d7a6bea94b8 # Parent 7d94fe3ea0ac5dd91f03b5c705552b64df599ca8 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. diff -r 7d94fe3ea0ac -r 546dc42c3bc4 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},