# HG changeset patch # User Anton Shestakov # Date 1467352475 -28800 # Node ID 59058549a611342f16e6d7e4a99b9e6ea40fa322 # Parent 81e0955ca2fd149ad0cc646f18c53f90da578d3f hgweb: add absolute urls for archives in json-summary diff -r 81e0955ca2fd -r 59058549a611 mercurial/templates/json/map --- a/mercurial/templates/json/map Fri Jul 01 13:36:59 2016 +0800 +++ b/mercurial/templates/json/map Fri Jul 01 13:54:35 2016 +0800 @@ -114,7 +114,8 @@ 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 -r 81e0955ca2fd -r 59058549a611 tests/test-hgweb-json.t --- a/tests/test-hgweb-json.t Fri Jul 01 13:36:59 2016 +0800 +++ b/tests/test-hgweb-json.t Fri Jul 01 13:54:35 2016 +0800 @@ -806,7 +806,8 @@ { "extension": ".tar.bz2", "node": "tip", - "type": "bz2" + "type": "bz2", + "url": "http://*:$HGPORT/archive/tip.tar.bz2" (glob) } ], "bookmarks": [