Show More
@@ -1,5 +1,20 b'' | |||
|
1 | 1 | mimetype = 'application/json' |
|
2 | filerevision = '"not yet implemented"' | |
|
2 | filerevision = '\{ | |
|
3 | "node": {node|json}, | |
|
4 | "path": {file|json}, | |
|
5 | "date": {date|json}, | |
|
6 | "desc": {desc|utf8|json}, | |
|
7 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, | |
|
8 | "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], | |
|
9 | "tags": [{join(tags%changelistentryname, ", ")}], | |
|
10 | "user": {author|utf8|json}, | |
|
11 | "parents": [{join(parent%changesetparent, ", ")}], | |
|
12 | "phase": {phase|json}, | |
|
13 | "lines": [{join(text%lineentry, ", ")}] | |
|
14 | }' | |
|
15 | lineentry = '\{ | |
|
16 | "line": {line|json} | |
|
17 | }' | |
|
3 | 18 | search = '"not yet implemented"' |
|
4 | 19 | # changelog and shortlog are the same web API but with different |
|
5 | 20 | # number of entries. |
@@ -111,10 +111,33 b'' | |||
|
111 | 111 | |
|
112 | 112 | file/{revision}/{path} shows file revision |
|
113 | 113 | |
|
114 |
$ request json-file/ |
|
|
114 | $ request json-file/78896eb0e102/foo-new | |
|
115 | 115 | 200 Script output follows |
|
116 | 116 | |
|
117 | "not yet implemented" | |
|
117 | { | |
|
118 | "bookmarks": [], | |
|
119 | "branch": "default", | |
|
120 | "date": [ | |
|
121 | 0.0, | |
|
122 | 0 | |
|
123 | ], | |
|
124 | "desc": "move foo", | |
|
125 | "lines": [ | |
|
126 | { | |
|
127 | "line": "bar\n" | |
|
128 | } | |
|
129 | ], | |
|
130 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
|
131 | "parents": [ | |
|
132 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
|
133 | ], | |
|
134 | "path": "foo-new", | |
|
135 | "phase": "public", | |
|
136 | "tags": [ | |
|
137 | "tag1" | |
|
138 | ], | |
|
139 | "user": "test" | |
|
140 | } | |
|
118 | 141 | |
|
119 | 142 | file/{revision} shows root directory info |
|
120 | 143 |
General Comments 0
You need to be logged in to leave comments.
Login now