Mercurial > hg
diff mercurial/templates/json/map @ 43717:6feaee05bac5
hgweb: add files to the json changeset template
As far as I can tell, it's currently impossible via JSON to figure out
what files are touched by a particular revision. Reusing the
filenodelink and filenolink templates from the other hgweb templates
should provide this information.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 15 Nov 2019 15:56:25 -0500 |
parents | 1a786fe069b8 |
children | d155bf11cf22 |
line wrap: on
line diff
--- a/mercurial/templates/json/map Fri Nov 15 16:02:01 2019 -0500 +++ b/mercurial/templates/json/map Fri Nov 15 15:56:25 2019 -0500 @@ -65,6 +65,7 @@ "tags": [{join(changesettag, ", ")}], "user": {author|utf8|json}, "parents": [{join(parent%changesetparent, ", ")}], + "files": [{join(files, ", ")}], "phase": {phase|json} }' changesetbranch = '{name|utf8|json}' @@ -229,8 +230,11 @@ "topic": {topic|utf8|json}, "rawdoc": {doc|utf8|json} }' -filenodelink = '' -filenolink = '' +filenodelink = '\{ + "file": {file|json}, + "status": {status|json} + }' +filenolink = '{filenodelink}' index = '\{ "entries": [{join(entries%indexentry, ", ")}] }'