diff --git a/mercurial/templates/json/map b/mercurial/templates/json/map --- a/mercurial/templates/json/map +++ b/mercurial/templates/json/map @@ -114,7 +114,8 @@ summary = '\{ archiveentry = '\{ "node": {node|json}, "extension": {extension|json}, - "type": {type|json} + "type": {type|json}, + "url": {"{urlbase}{url}archive/{node}{extension}"|json} }' filediff = '\{ "path": {file|json}, diff --git a/tests/test-hgweb-json.t b/tests/test-hgweb-json.t --- a/tests/test-hgweb-json.t +++ b/tests/test-hgweb-json.t @@ -806,7 +806,8 @@ summary/ shows a summary of repository s { "extension": ".tar.bz2", "node": "tip", - "type": "bz2" + "type": "bz2", + "url": "http://*:$HGPORT/archive/tip.tar.bz2" (glob) } ], "bookmarks": [