Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
50404:64cdd80d6909 | 50405:c0fbd63d66a7 |
---|---|
63 "branch": {if(branch, branch%changesetbranch, "default"|json)}, | 63 "branch": {if(branch, branch%changesetbranch, "default"|json)}, |
64 "bookmarks": [{join(changesetbookmark, ", ")}], | 64 "bookmarks": [{join(changesetbookmark, ", ")}], |
65 "tags": [{join(changesettag, ", ")}], | 65 "tags": [{join(changesettag, ", ")}], |
66 "user": {author|utf8|json}, | 66 "user": {author|utf8|json}, |
67 "parents": [{join(parent%changesetparent, ", ")}], | 67 "parents": [{join(parent%changesetparent, ", ")}], |
68 "children": [{join(child%changesetparent, ", ")}], | |
68 "files": [{join(files, ", ")}], | 69 "files": [{join(files, ", ")}], |
69 "diff": [{join(diff, ", ")}], | 70 "diff": [{join(diff, ", ")}], |
70 "phase": {phase|json} | 71 "phase": {phase|json} |
71 }' | 72 }' |
72 changesetbranch = '{name|utf8|json}' | 73 changesetbranch = '{name|utf8|json}' |