diff mercurial/templates/json/map @ 29458:59058549a611

hgweb: add absolute urls for archives in json-summary
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 01 Jul 2016 13:54:35 +0800
parents f3dca85bd2d1
children c4fc33c477da
line wrap: on
line diff
--- 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},