Mercurial > hg
annotate mercurial/templates/json/map @ 24544:71e96b9fd3fd
templates: add a stub template for json
Many have long wanted hgweb to emit a common machine readable output.
We start the process by defining a stub json template.
Right now, each endpoint returns a stub "not yet implemented" string.
Individual templates will be implemented in subsequent patches.
Basic tests for templates have been included. Coverage isn't perfect,
but it is better than nothing.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 30 Mar 2015 20:15:03 -0700 |
parents | |
children | 9e0c67e84896 |
rev | line source |
---|---|
24544
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1 mimetype = 'application/json' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2 filerevision = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
3 search = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
4 shortlog = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
5 changelog = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
6 changeset = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
7 manifest = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
8 tags = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
9 bookmarks = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
10 branches = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
11 summary = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
12 filediff = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
13 filecomparison = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
14 fileannotate = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
15 filelog = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
16 graph = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
17 helptopics = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
18 help = '"not yet implemented"' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
19 filenodelink = '' |
71e96b9fd3fd
templates: add a stub template for json
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
20 filenolink = '' |