Mercurial > hg
diff tests/test-hgweb-json.t @ 24715:1439bacf0ec7
json: implement {fileannotate} template
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 10 Apr 2015 22:37:40 -0400 |
parents | 84859415a4c9 |
children | 4d2b9b304ad0 |
line wrap: on
line diff
--- a/tests/test-hgweb-json.t Fri Apr 10 22:26:53 2015 -0400 +++ b/tests/test-hgweb-json.t Fri Apr 10 22:37:40 2015 -0400 @@ -765,7 +765,36 @@ $ request json-annotate/f8bbb9024b10/foo 200 Script output follows - "not yet implemented" + { + "abspath": "foo", + "annotate": [ + { + "abspath": "foo", + "author": "test", + "desc": "modify foo", + "line": "bar\n", + "lineno": 1, + "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", + "revdate": [ + 0.0, + 0 + ], + "targetline": 1 + } + ], + "author": "test", + "children": [], + "date": [ + 0.0, + 0 + ], + "desc": "modify foo", + "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", + "parents": [ + "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" + ], + "permissions": "" + } filelog/{revision}/{path} shows history of a single file