Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-json.t @ 29381:8bfe44494a0d
templates: add support for filerevision webcommand in json style
author | Laura M?dioni <laura.medioni@logilab.fr> |
---|---|
date | Fri, 03 Jun 2016 12:32:42 +0200 |
parents | c1b526f55116 |
children | e4b777fe1576 |
line wrap: on
line diff
--- a/tests/test-hgweb-json.t Fri Jun 03 11:28:22 2016 +0200 +++ b/tests/test-hgweb-json.t Fri Jun 03 12:32:42 2016 +0200 @@ -111,10 +111,33 @@ file/{revision}/{path} shows file revision - $ request json-file/06e557f3edf6/foo + $ request json-file/78896eb0e102/foo-new 200 Script output follows - "not yet implemented" + { + "bookmarks": [], + "branch": "default", + "date": [ + 0.0, + 0 + ], + "desc": "move foo", + "lines": [ + { + "line": "bar\n" + } + ], + "node": "78896eb0e102174ce9278438a95e12543e4367a7", + "parents": [ + "f8bbb9024b10f93cdbb8d940337398291d40dea8" + ], + "path": "foo-new", + "phase": "public", + "tags": [ + "tag1" + ], + "user": "test" + } file/{revision} shows root directory info