Mercurial > hg
diff mercurial/templates/json/map @ 50405:c0fbd63d66a7
hgweb: add "children" into the JSON template for a changeset
The children are shown in the HTML templates, so I don’t see a reason against including them in the JSON template as well.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sat, 25 Mar 2023 23:02:33 +0100 |
parents | d155bf11cf22 |
children |
line wrap: on
line diff
--- a/mercurial/templates/json/map Fri Mar 24 10:43:47 2023 +0100 +++ b/mercurial/templates/json/map Sat Mar 25 23:02:33 2023 +0100 @@ -65,6 +65,7 @@ "tags": [{join(changesettag, ", ")}], "user": {author|utf8|json}, "parents": [{join(parent%changesetparent, ", ")}], + "children": [{join(child%changesetparent, ", ")}], "files": [{join(files, ", ")}], "diff": [{join(diff, ", ")}], "phase": {phase|json}