Show More
@@ -29,7 +29,27 b" changesetbranch = '{name|json}'" | |||
|
29 | 29 | changesetbookmark = '{bookmark|json}' |
|
30 | 30 | changesettag = '{tag|json}' |
|
31 | 31 | changesetparent = '{node|json}' |
|
32 | manifest = '"not yet implemented"' | |
|
32 | manifest = '\{ | |
|
33 | "node": {node|json}, | |
|
34 | "abspath": {path|json}, | |
|
35 | "directories": [{join(dentries%direntry, ", ")}], | |
|
36 | "files": [{join(fentries%fileentry, ", ")}], | |
|
37 | "bookmarks": [{join(bookmarks%name, ", ")}], | |
|
38 | "tags": [{join(tags%name, ", ")}] | |
|
39 | }' | |
|
40 | name = '{name|json}' | |
|
41 | direntry = '\{ | |
|
42 | "abspath": {path|json}, | |
|
43 | "basename": {basename|json}, | |
|
44 | "emptydirs": {emptydirs|json} | |
|
45 | }' | |
|
46 | fileentry = '\{ | |
|
47 | "abspath": {file|json}, | |
|
48 | "basename": {basename|json}, | |
|
49 | "date": {date|json}, | |
|
50 | "size": {size|json}, | |
|
51 | "flags": {permissions|json} | |
|
52 | }' | |
|
33 | 53 | tags = '\{ |
|
34 | 54 | "node": {node|json}, |
|
35 | 55 | "tags": [{join(entriesnotip%tagentry, ", ")}] |
@@ -119,10 +119,46 b' file/{revision}/{path} shows file revisi' | |||
|
119 | 119 | |
|
120 | 120 | file/{revision} shows root directory info |
|
121 | 121 | |
|
122 |
$ request json-file/ |
|
|
122 | $ request json-file/cc725e08502a | |
|
123 | 123 | 200 Script output follows |
|
124 | 124 | |
|
125 | "not yet implemented" | |
|
125 | { | |
|
126 | "abspath": "/", | |
|
127 | "bookmarks": [], | |
|
128 | "directories": [ | |
|
129 | { | |
|
130 | "abspath": "/da", | |
|
131 | "basename": "da", | |
|
132 | "emptydirs": "" | |
|
133 | } | |
|
134 | ], | |
|
135 | "files": [ | |
|
136 | { | |
|
137 | "abspath": ".hgtags", | |
|
138 | "basename": ".hgtags", | |
|
139 | "date": [ | |
|
140 | 0.0, | |
|
141 | 0 | |
|
142 | ], | |
|
143 | "flags": "", | |
|
144 | "size": 92 | |
|
145 | }, | |
|
146 | { | |
|
147 | "abspath": "foo-new", | |
|
148 | "basename": "foo-new", | |
|
149 | "date": [ | |
|
150 | 0.0, | |
|
151 | 0 | |
|
152 | ], | |
|
153 | "flags": "", | |
|
154 | "size": 4 | |
|
155 | } | |
|
156 | ], | |
|
157 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
|
158 | "tags": [ | |
|
159 | "tip" | |
|
160 | ] | |
|
161 | } | |
|
126 | 162 | |
|
127 | 163 | changelog/ shows information about several changesets |
|
128 | 164 | |
@@ -522,7 +558,31 b' manifest/{revision}/{path} shows info ab' | |||
|
522 | 558 | $ request json-manifest/06e557f3edf6/ |
|
523 | 559 | 200 Script output follows |
|
524 | 560 | |
|
525 | "not yet implemented" | |
|
561 | { | |
|
562 | "abspath": "/", | |
|
563 | "bookmarks": [], | |
|
564 | "directories": [ | |
|
565 | { | |
|
566 | "abspath": "/da", | |
|
567 | "basename": "da", | |
|
568 | "emptydirs": "" | |
|
569 | } | |
|
570 | ], | |
|
571 | "files": [ | |
|
572 | { | |
|
573 | "abspath": "foo", | |
|
574 | "basename": "foo", | |
|
575 | "date": [ | |
|
576 | 0.0, | |
|
577 | 0 | |
|
578 | ], | |
|
579 | "flags": "", | |
|
580 | "size": 4 | |
|
581 | } | |
|
582 | ], | |
|
583 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
|
584 | "tags": [] | |
|
585 | } | |
|
526 | 586 | |
|
527 | 587 | tags/ shows tags info |
|
528 | 588 |
General Comments 0
You need to be logged in to leave comments.
Login now