Mercurial > hg
diff mercurial/templates/json/map @ 35389:b963750b125f
hgweb: implement json-graph
It's essentially a copy of json-log with graph-related things added (col, row,
color, edges).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 07 Dec 2017 17:18:29 +0800 |
parents | c4fc33c477da |
children | 47aea60d114d |
line wrap: on
line diff
--- a/mercurial/templates/json/map Mon Dec 11 22:16:13 2017 -0800 +++ b/mercurial/templates/json/map Thu Dec 07 17:18:29 2017 +0800 @@ -25,6 +25,7 @@ # number of entries. changelog = changelist.tmpl shortlog = changelist.tmpl +graph = graph.tmpl changelistentry = '\{ "node": {node|json}, "date": {date|json}, @@ -37,6 +38,22 @@ "parents": [{if(allparents, join(allparents%changesetparent, ", "), join(parent%changesetparent, ", "))}] }' +graphentry = '\{ + "node": {node|json}, + "date": {date|json}, + "desc": {desc|utf8|json}, + "branch": {if(branch, branch%changesetbranch, "default"|json)}, + "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], + "tags": [{join(tags%changelistentryname, ", ")}], + "user": {author|utf8|json}, + "phase": {phase|json}, + "col": {col|json}, + "row": {row|json}, + "color": {color|json}, + "edges": {edges|json}, + "parents": [{if(allparents, join(allparents%changesetparent, ", "), + join(parent%changesetparent, ", "))}] + }' changelistentryname = '{name|utf8|json}' changeset = '\{ "node": {node|json}, @@ -198,7 +215,6 @@ filelog = '\{ "entries": [{join(entries%changelistentry, ", ")}] }' -graph = '"not yet implemented"' helptopics = '\{ "topics": [{join(topics%helptopicentry, ", ")}], "earlycommands": [{join(earlycommands%helptopicentry, ", ")}],