Mercurial > hg
diff mercurial/templates/json/map @ 29383:f3dca85bd2d1
templates: add support for search webcommand in json style
author | Laura Médioni <laura.medioni@logilab.fr> |
---|---|
date | Fri, 10 Jun 2016 10:31:42 +0200 |
parents | e4b777fe1576 |
children | 59058549a611 |
line wrap: on
line diff
--- a/mercurial/templates/json/map Mon Jun 06 15:14:11 2016 +0200 +++ b/mercurial/templates/json/map Fri Jun 10 10:31:42 2016 +0200 @@ -15,7 +15,12 @@ lineentry = '\{ "line": {line|json} }' -search = '"not yet implemented"' +search = '\{ + "node": {node|json}, + "query": {query|json}, + "entries": [{join(entries%searchentry, ", ")}] + }' +searchentry = '{changelistentry}' # changelog and shortlog are the same web API but with different # number of entries. changelog = changelist.tmpl