##// END OF EJS Templates
json: implement {fileannotate} template
Gregory Szorc -
r24715:1439bacf default
parent child Browse files
Show More
@@ -134,7 +134,27 b" comparisonline = '\\{"
134 "rn": {rightlineno|json},
134 "rn": {rightlineno|json},
135 "rl": {rightline|json}
135 "rl": {rightline|json}
136 }'
136 }'
137 fileannotate = '"not yet implemented"'
137 fileannotate = '\{
138 "abspath": {file|json},
139 "node": {node|json},
140 "author": {author|json},
141 "date": {date|json},
142 "desc": {desc|json},
143 "parents": [{join(parent%changesetparent, ", ")}],
144 "children": [{join(child%changesetparent, ", ")}],
145 "permissions": {permissions|json},
146 "annotate": [{join(annotate%fileannotation, ", ")}]
147 }'
148 fileannotation = '\{
149 "node": {node|json},
150 "author": {author|json},
151 "desc": {desc|json},
152 "abspath": {file|json},
153 "targetline": {targetline|json},
154 "line": {line|json},
155 "lineno": {lineno|json},
156 "revdate": {revdate|json}
157 }'
138 filelog = '"not yet implemented"'
158 filelog = '"not yet implemented"'
139 graph = '"not yet implemented"'
159 graph = '"not yet implemented"'
140 helptopics = '\{
160 helptopics = '\{
@@ -765,7 +765,36 b' annotate/{revision}/{path} shows annotat'
765 $ request json-annotate/f8bbb9024b10/foo
765 $ request json-annotate/f8bbb9024b10/foo
766 200 Script output follows
766 200 Script output follows
767
767
768 "not yet implemented"
768 {
769 "abspath": "foo",
770 "annotate": [
771 {
772 "abspath": "foo",
773 "author": "test",
774 "desc": "modify foo",
775 "line": "bar\n",
776 "lineno": 1,
777 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
778 "revdate": [
779 0.0,
780 0
781 ],
782 "targetline": 1
783 }
784 ],
785 "author": "test",
786 "children": [],
787 "date": [
788 0.0,
789 0
790 ],
791 "desc": "modify foo",
792 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
793 "parents": [
794 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
795 ],
796 "permissions": ""
797 }
769
798
770 filelog/{revision}/{path} shows history of a single file
799 filelog/{revision}/{path} shows history of a single file
771
800
General Comments 0
You need to be logged in to leave comments. Login now