Show More
@@ -1,250 +1,251 | |||||
1 | default = 'shortlog' |
|
1 | default = 'shortlog' | |
2 | mimetype = 'application/json' |
|
2 | mimetype = 'application/json' | |
3 |
|
3 | |||
4 | filerevision = '\{ |
|
4 | filerevision = '\{ | |
5 | "node": {node|json}, |
|
5 | "node": {node|json}, | |
6 | "path": {file|json}, |
|
6 | "path": {file|json}, | |
7 | "date": {date|json}, |
|
7 | "date": {date|json}, | |
8 | "desc": {desc|utf8|json}, |
|
8 | "desc": {desc|utf8|json}, | |
9 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, |
|
9 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, | |
10 | "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], |
|
10 | "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], | |
11 | "tags": [{join(tags%changelistentryname, ", ")}], |
|
11 | "tags": [{join(tags%changelistentryname, ", ")}], | |
12 | "user": {author|utf8|json}, |
|
12 | "user": {author|utf8|json}, | |
13 | "parents": [{join(parent%changesetparent, ", ")}], |
|
13 | "parents": [{join(parent%changesetparent, ", ")}], | |
14 | "phase": {phase|json}, |
|
14 | "phase": {phase|json}, | |
15 | "lines": [{join(text%lineentry, ", ")}] |
|
15 | "lines": [{join(text%lineentry, ", ")}] | |
16 | }' |
|
16 | }' | |
17 | lineentry = '\{ |
|
17 | lineentry = '\{ | |
18 | "line": {line|json} |
|
18 | "line": {line|json} | |
19 | }' |
|
19 | }' | |
20 | search = '\{ |
|
20 | search = '\{ | |
21 | "node": {node|json}, |
|
21 | "node": {node|json}, | |
22 | "query": {query|json}, |
|
22 | "query": {query|json}, | |
23 | "entries": [{join(entries%changelistentry, ", ")}] |
|
23 | "entries": [{join(entries%changelistentry, ", ")}] | |
24 | }' |
|
24 | }' | |
25 | # changelog and shortlog are the same web API but with different |
|
25 | # changelog and shortlog are the same web API but with different | |
26 | # number of entries. |
|
26 | # number of entries. | |
27 | changelog = changelist.tmpl |
|
27 | changelog = changelist.tmpl | |
28 | shortlog = changelist.tmpl |
|
28 | shortlog = changelist.tmpl | |
29 | graph = graph.tmpl |
|
29 | graph = graph.tmpl | |
30 | changelistentry = '\{ |
|
30 | changelistentry = '\{ | |
31 | "node": {node|json}, |
|
31 | "node": {node|json}, | |
32 | "date": {date|json}, |
|
32 | "date": {date|json}, | |
33 | "desc": {desc|utf8|json}, |
|
33 | "desc": {desc|utf8|json}, | |
34 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, |
|
34 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, | |
35 | "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], |
|
35 | "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], | |
36 | "tags": [{join(tags%changelistentryname, ", ")}], |
|
36 | "tags": [{join(tags%changelistentryname, ", ")}], | |
37 | "user": {author|utf8|json}, |
|
37 | "user": {author|utf8|json}, | |
38 | "phase": {phase|json}, |
|
38 | "phase": {phase|json}, | |
39 | "parents": [{if(allparents, join(allparents%changesetparent, ", "), |
|
39 | "parents": [{if(allparents, join(allparents%changesetparent, ", "), | |
40 | join(parent%changesetparent, ", "))}] |
|
40 | join(parent%changesetparent, ", "))}] | |
41 | }' |
|
41 | }' | |
42 | graphentry = '\{ |
|
42 | graphentry = '\{ | |
43 | "node": {node|json}, |
|
43 | "node": {node|json}, | |
44 | "date": {date|json}, |
|
44 | "date": {date|json}, | |
45 | "desc": {desc|utf8|json}, |
|
45 | "desc": {desc|utf8|json}, | |
46 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, |
|
46 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, | |
47 | "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], |
|
47 | "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], | |
48 | "tags": [{join(tags%changelistentryname, ", ")}], |
|
48 | "tags": [{join(tags%changelistentryname, ", ")}], | |
49 | "user": {author|utf8|json}, |
|
49 | "user": {author|utf8|json}, | |
50 | "phase": {phase|json}, |
|
50 | "phase": {phase|json}, | |
51 | "col": {col|json}, |
|
51 | "col": {col|json}, | |
52 | "row": {row|json}, |
|
52 | "row": {row|json}, | |
53 | "color": {color|json}, |
|
53 | "color": {color|json}, | |
54 | "edges": {edges|json}, |
|
54 | "edges": {edges|json}, | |
55 | "parents": [{if(allparents, join(allparents%changesetparent, ", "), |
|
55 | "parents": [{if(allparents, join(allparents%changesetparent, ", "), | |
56 | join(parent%changesetparent, ", "))}] |
|
56 | join(parent%changesetparent, ", "))}] | |
57 | }' |
|
57 | }' | |
58 | changelistentryname = '{name|utf8|json}' |
|
58 | changelistentryname = '{name|utf8|json}' | |
59 | changeset = '\{ |
|
59 | changeset = '\{ | |
60 | "node": {node|json}, |
|
60 | "node": {node|json}, | |
61 | "date": {date|json}, |
|
61 | "date": {date|json}, | |
62 | "desc": {desc|utf8|json}, |
|
62 | "desc": {desc|utf8|json}, | |
63 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, |
|
63 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, | |
64 | "bookmarks": [{join(changesetbookmark, ", ")}], |
|
64 | "bookmarks": [{join(changesetbookmark, ", ")}], | |
65 | "tags": [{join(changesettag, ", ")}], |
|
65 | "tags": [{join(changesettag, ", ")}], | |
66 | "user": {author|utf8|json}, |
|
66 | "user": {author|utf8|json}, | |
67 | "parents": [{join(parent%changesetparent, ", ")}], |
|
67 | "parents": [{join(parent%changesetparent, ", ")}], | |
68 | "files": [{join(files, ", ")}], |
|
68 | "files": [{join(files, ", ")}], | |
|
69 | "diff": [{join(diff, ", ")}], | |||
69 | "phase": {phase|json} |
|
70 | "phase": {phase|json} | |
70 | }' |
|
71 | }' | |
71 | changesetbranch = '{name|utf8|json}' |
|
72 | changesetbranch = '{name|utf8|json}' | |
72 | changesetbookmark = '{bookmark|utf8|json}' |
|
73 | changesetbookmark = '{bookmark|utf8|json}' | |
73 | changesettag = '{tag|utf8|json}' |
|
74 | changesettag = '{tag|utf8|json}' | |
74 | changesetparent = '{node|json}' |
|
75 | changesetparent = '{node|json}' | |
75 | manifest = '\{ |
|
76 | manifest = '\{ | |
76 | "node": {node|json}, |
|
77 | "node": {node|json}, | |
77 | "abspath": {path|json}, |
|
78 | "abspath": {path|json}, | |
78 | "directories": [{join(dentries%direntry, ", ")}], |
|
79 | "directories": [{join(dentries%direntry, ", ")}], | |
79 | "files": [{join(fentries%fileentry, ", ")}], |
|
80 | "files": [{join(fentries%fileentry, ", ")}], | |
80 | "bookmarks": [{join(bookmarks%name, ", ")}], |
|
81 | "bookmarks": [{join(bookmarks%name, ", ")}], | |
81 | "tags": [{join(tags%name, ", ")}] |
|
82 | "tags": [{join(tags%name, ", ")}] | |
82 | }' |
|
83 | }' | |
83 | name = '{name|utf8|json}' |
|
84 | name = '{name|utf8|json}' | |
84 | direntry = '\{ |
|
85 | direntry = '\{ | |
85 | "abspath": {path|json}, |
|
86 | "abspath": {path|json}, | |
86 | "basename": {basename|json}, |
|
87 | "basename": {basename|json}, | |
87 | "emptydirs": {emptydirs|json} |
|
88 | "emptydirs": {emptydirs|json} | |
88 | }' |
|
89 | }' | |
89 | fileentry = '\{ |
|
90 | fileentry = '\{ | |
90 | "abspath": {file|json}, |
|
91 | "abspath": {file|json}, | |
91 | "basename": {basename|json}, |
|
92 | "basename": {basename|json}, | |
92 | "date": {date|json}, |
|
93 | "date": {date|json}, | |
93 | "size": {size|json}, |
|
94 | "size": {size|json}, | |
94 | "flags": {permissions|json} |
|
95 | "flags": {permissions|json} | |
95 | }' |
|
96 | }' | |
96 | tags = '\{ |
|
97 | tags = '\{ | |
97 | "node": {node|json}, |
|
98 | "node": {node|json}, | |
98 | "tags": [{join(entriesnotip%tagentry, ", ")}] |
|
99 | "tags": [{join(entriesnotip%tagentry, ", ")}] | |
99 | }' |
|
100 | }' | |
100 | tagentry = '\{ |
|
101 | tagentry = '\{ | |
101 | "tag": {tag|utf8|json}, |
|
102 | "tag": {tag|utf8|json}, | |
102 | "node": {node|json}, |
|
103 | "node": {node|json}, | |
103 | "date": {date|json} |
|
104 | "date": {date|json} | |
104 | }' |
|
105 | }' | |
105 | bookmarks = '\{ |
|
106 | bookmarks = '\{ | |
106 | "node": {node|json}, |
|
107 | "node": {node|json}, | |
107 | "bookmarks": [{join(entries%bookmarkentry, ", ")}] |
|
108 | "bookmarks": [{join(entries%bookmarkentry, ", ")}] | |
108 | }' |
|
109 | }' | |
109 | bookmarkentry = '\{ |
|
110 | bookmarkentry = '\{ | |
110 | "bookmark": {bookmark|utf8|json}, |
|
111 | "bookmark": {bookmark|utf8|json}, | |
111 | "node": {node|json}, |
|
112 | "node": {node|json}, | |
112 | "date": {date|json} |
|
113 | "date": {date|json} | |
113 | }' |
|
114 | }' | |
114 | branches = '\{ |
|
115 | branches = '\{ | |
115 | "branches": [{join(entries%branchentry, ", ")}] |
|
116 | "branches": [{join(entries%branchentry, ", ")}] | |
116 | }' |
|
117 | }' | |
117 | branchentry = '\{ |
|
118 | branchentry = '\{ | |
118 | "branch": {branch|utf8|json}, |
|
119 | "branch": {branch|utf8|json}, | |
119 | "node": {node|json}, |
|
120 | "node": {node|json}, | |
120 | "date": {date|json}, |
|
121 | "date": {date|json}, | |
121 | "status": {status|json} |
|
122 | "status": {status|json} | |
122 | }' |
|
123 | }' | |
123 | shortlogentry = '{changelistentry}' |
|
124 | shortlogentry = '{changelistentry}' | |
124 | summary = '\{ |
|
125 | summary = '\{ | |
125 | "node": {node|json}, |
|
126 | "node": {node|json}, | |
126 | "lastchange": {lastchange|json}, |
|
127 | "lastchange": {lastchange|json}, | |
127 | "bookmarks": [{join(bookmarks%bookmarkentry, ", ")}], |
|
128 | "bookmarks": [{join(bookmarks%bookmarkentry, ", ")}], | |
128 | "branches": [{join(branches%branchentry, ", ")}], |
|
129 | "branches": [{join(branches%branchentry, ", ")}], | |
129 | "shortlog": [{join(shortlog%shortlogentry, ", ")}], |
|
130 | "shortlog": [{join(shortlog%shortlogentry, ", ")}], | |
130 | "tags": [{join(tags%tagentry, ", ")}], |
|
131 | "tags": [{join(tags%tagentry, ", ")}], | |
131 | "archives": [{join(archives%archiveentry, ", ")}], |
|
132 | "archives": [{join(archives%archiveentry, ", ")}], | |
132 | "labels": {labels|json} |
|
133 | "labels": {labels|json} | |
133 | }' |
|
134 | }' | |
134 | archiveentry = '\{ |
|
135 | archiveentry = '\{ | |
135 | "node": {node|json}, |
|
136 | "node": {node|json}, | |
136 | "extension": {extension|json}, |
|
137 | "extension": {extension|json}, | |
137 | "type": {type|json}, |
|
138 | "type": {type|json}, | |
138 | "url": {"{urlbase}{url}archive/{node}{extension}"|json} |
|
139 | "url": {"{urlbase}{url}archive/{node}{extension}"|json} | |
139 | }' |
|
140 | }' | |
140 | filediff = '\{ |
|
141 | filediff = '\{ | |
141 | "path": {file|json}, |
|
142 | "path": {file|json}, | |
142 | "node": {node|json}, |
|
143 | "node": {node|json}, | |
143 | "date": {date|json}, |
|
144 | "date": {date|json}, | |
144 | "desc": {desc|utf8|json}, |
|
145 | "desc": {desc|utf8|json}, | |
145 | "author": {author|utf8|json}, |
|
146 | "author": {author|utf8|json}, | |
146 | "parents": [{join(parent%changesetparent, ", ")}], |
|
147 | "parents": [{join(parent%changesetparent, ", ")}], | |
147 | "children": [{join(child%changesetparent, ", ")}], |
|
148 | "children": [{join(child%changesetparent, ", ")}], | |
148 | "diff": [{join(diff, ", ")}] |
|
149 | "diff": [{join(diff, ", ")}] | |
149 | }' |
|
150 | }' | |
150 | diffblock = '\{ |
|
151 | diffblock = '\{ | |
151 | "blockno": {blockno|json}, |
|
152 | "blockno": {blockno|json}, | |
152 | "lines": [{join(lines, ", ")}] |
|
153 | "lines": [{join(lines, ", ")}] | |
153 | }' |
|
154 | }' | |
154 | difflineplus = '\{ |
|
155 | difflineplus = '\{ | |
155 | "t": "+", |
|
156 | "t": "+", | |
156 | "n": {lineno|json}, |
|
157 | "n": {lineno|json}, | |
157 | "l": {line|json} |
|
158 | "l": {line|json} | |
158 | }' |
|
159 | }' | |
159 | difflineminus = '\{ |
|
160 | difflineminus = '\{ | |
160 | "t": "-", |
|
161 | "t": "-", | |
161 | "n": {lineno|json}, |
|
162 | "n": {lineno|json}, | |
162 | "l": {line|json} |
|
163 | "l": {line|json} | |
163 | }' |
|
164 | }' | |
164 | difflineat = '\{ |
|
165 | difflineat = '\{ | |
165 | "t": "@", |
|
166 | "t": "@", | |
166 | "n": {lineno|json}, |
|
167 | "n": {lineno|json}, | |
167 | "l": {line|json} |
|
168 | "l": {line|json} | |
168 | }' |
|
169 | }' | |
169 | diffline = '\{ |
|
170 | diffline = '\{ | |
170 | "t": "", |
|
171 | "t": "", | |
171 | "n": {lineno|json}, |
|
172 | "n": {lineno|json}, | |
172 | "l": {line|json} |
|
173 | "l": {line|json} | |
173 | }' |
|
174 | }' | |
174 | filecomparison = '\{ |
|
175 | filecomparison = '\{ | |
175 | "path": {file|json}, |
|
176 | "path": {file|json}, | |
176 | "node": {node|json}, |
|
177 | "node": {node|json}, | |
177 | "date": {date|json}, |
|
178 | "date": {date|json}, | |
178 | "desc": {desc|utf8|json}, |
|
179 | "desc": {desc|utf8|json}, | |
179 | "author": {author|utf8|json}, |
|
180 | "author": {author|utf8|json}, | |
180 | "parents": [{join(parent%changesetparent, ", ")}], |
|
181 | "parents": [{join(parent%changesetparent, ", ")}], | |
181 | "children": [{join(child%changesetparent, ", ")}], |
|
182 | "children": [{join(child%changesetparent, ", ")}], | |
182 | "leftnode": {leftnode|json}, |
|
183 | "leftnode": {leftnode|json}, | |
183 | "rightnode": {rightnode|json}, |
|
184 | "rightnode": {rightnode|json}, | |
184 | "comparison": [{join(comparison, ", ")}] |
|
185 | "comparison": [{join(comparison, ", ")}] | |
185 | }' |
|
186 | }' | |
186 | comparisonblock = '\{ |
|
187 | comparisonblock = '\{ | |
187 | "lines": [{join(lines, ", ")}] |
|
188 | "lines": [{join(lines, ", ")}] | |
188 | }' |
|
189 | }' | |
189 | comparisonline = '\{ |
|
190 | comparisonline = '\{ | |
190 | "t": {type|json}, |
|
191 | "t": {type|json}, | |
191 | "ln": {leftlineno|json}, |
|
192 | "ln": {leftlineno|json}, | |
192 | "ll": {leftline|json}, |
|
193 | "ll": {leftline|json}, | |
193 | "rn": {rightlineno|json}, |
|
194 | "rn": {rightlineno|json}, | |
194 | "rl": {rightline|json} |
|
195 | "rl": {rightline|json} | |
195 | }' |
|
196 | }' | |
196 | fileannotate = '\{ |
|
197 | fileannotate = '\{ | |
197 | "abspath": {file|json}, |
|
198 | "abspath": {file|json}, | |
198 | "node": {node|json}, |
|
199 | "node": {node|json}, | |
199 | "author": {author|utf8|json}, |
|
200 | "author": {author|utf8|json}, | |
200 | "date": {date|json}, |
|
201 | "date": {date|json}, | |
201 | "desc": {desc|utf8|json}, |
|
202 | "desc": {desc|utf8|json}, | |
202 | "parents": [{join(parent%changesetparent, ", ")}], |
|
203 | "parents": [{join(parent%changesetparent, ", ")}], | |
203 | "children": [{join(child%changesetparent, ", ")}], |
|
204 | "children": [{join(child%changesetparent, ", ")}], | |
204 | "permissions": {permissions|json}, |
|
205 | "permissions": {permissions|json}, | |
205 | "annotate": [{join(annotate%fileannotation, ", ")}] |
|
206 | "annotate": [{join(annotate%fileannotation, ", ")}] | |
206 | }' |
|
207 | }' | |
207 | fileannotation = '\{ |
|
208 | fileannotation = '\{ | |
208 | "node": {node|json}, |
|
209 | "node": {node|json}, | |
209 | "author": {author|utf8|json}, |
|
210 | "author": {author|utf8|json}, | |
210 | "desc": {desc|utf8|json}, |
|
211 | "desc": {desc|utf8|json}, | |
211 | "abspath": {file|json}, |
|
212 | "abspath": {file|json}, | |
212 | "targetline": {targetline|json}, |
|
213 | "targetline": {targetline|json}, | |
213 | "line": {line|json}, |
|
214 | "line": {line|json}, | |
214 | "lineno": {lineno|json}, |
|
215 | "lineno": {lineno|json}, | |
215 | "revdate": {revdate|json} |
|
216 | "revdate": {revdate|json} | |
216 | }' |
|
217 | }' | |
217 | filelog = '\{ |
|
218 | filelog = '\{ | |
218 | "entries": [{join(entries%changelistentry, ", ")}] |
|
219 | "entries": [{join(entries%changelistentry, ", ")}] | |
219 | }' |
|
220 | }' | |
220 | helptopics = '\{ |
|
221 | helptopics = '\{ | |
221 | "topics": [{join(topics%helptopicentry, ", ")}], |
|
222 | "topics": [{join(topics%helptopicentry, ", ")}], | |
222 | "earlycommands": [{join(earlycommands%helptopicentry, ", ")}], |
|
223 | "earlycommands": [{join(earlycommands%helptopicentry, ", ")}], | |
223 | "othercommands": [{join(othercommands%helptopicentry, ", ")}] |
|
224 | "othercommands": [{join(othercommands%helptopicentry, ", ")}] | |
224 | }' |
|
225 | }' | |
225 | helptopicentry = '\{ |
|
226 | helptopicentry = '\{ | |
226 | "topic": {topic|utf8|json}, |
|
227 | "topic": {topic|utf8|json}, | |
227 | "summary": {summary|utf8|json} |
|
228 | "summary": {summary|utf8|json} | |
228 | }' |
|
229 | }' | |
229 | help = '\{ |
|
230 | help = '\{ | |
230 | "topic": {topic|utf8|json}, |
|
231 | "topic": {topic|utf8|json}, | |
231 | "rawdoc": {doc|utf8|json} |
|
232 | "rawdoc": {doc|utf8|json} | |
232 | }' |
|
233 | }' | |
233 | filenodelink = '\{ |
|
234 | filenodelink = '\{ | |
234 | "file": {file|json}, |
|
235 | "file": {file|json}, | |
235 | "status": {status|json} |
|
236 | "status": {status|json} | |
236 | }' |
|
237 | }' | |
237 | filenolink = '{filenodelink}' |
|
238 | filenolink = '{filenodelink}' | |
238 | index = '\{ |
|
239 | index = '\{ | |
239 | "entries": [{join(entries%indexentry, ", ")}] |
|
240 | "entries": [{join(entries%indexentry, ", ")}] | |
240 | }' |
|
241 | }' | |
241 | indexentry = '\{ |
|
242 | indexentry = '\{ | |
242 | "name": {name|utf8|json}, |
|
243 | "name": {name|utf8|json}, | |
243 | "description": {description|utf8|json}, |
|
244 | "description": {description|utf8|json}, | |
244 | "contact": {contact|utf8|json}, |
|
245 | "contact": {contact|utf8|json}, | |
245 | "lastchange": {lastchange|json}, |
|
246 | "lastchange": {lastchange|json}, | |
246 | "labels": {labels|json} |
|
247 | "labels": {labels|json} | |
247 | }' |
|
248 | }' | |
248 | error = '\{ |
|
249 | error = '\{ | |
249 | "error": {error|utf8|json} |
|
250 | "error": {error|utf8|json} | |
250 | }' |
|
251 | }' |
@@ -1,2264 +1,2381 | |||||
1 | #require serve |
|
1 | #require serve | |
2 |
|
2 | |||
3 | $ request() { |
|
3 | $ request() { | |
4 | > get-with-headers.py --json localhost:$HGPORT "$1" |
|
4 | > get-with-headers.py --json localhost:$HGPORT "$1" | |
5 | > } |
|
5 | > } | |
6 |
|
6 | |||
7 | $ hg init test |
|
7 | $ hg init test | |
8 | $ cd test |
|
8 | $ cd test | |
9 | $ mkdir da |
|
9 | $ mkdir da | |
10 | $ echo foo > da/foo |
|
10 | $ echo foo > da/foo | |
11 | $ echo foo > foo |
|
11 | $ echo foo > foo | |
12 | $ hg -q ci -A -m initial |
|
12 | $ hg -q ci -A -m initial | |
13 | $ echo bar > foo |
|
13 | $ echo bar > foo | |
14 | $ hg ci -m 'modify foo' |
|
14 | $ hg ci -m 'modify foo' | |
15 | $ echo bar > da/foo |
|
15 | $ echo bar > da/foo | |
16 | $ hg ci -m 'modify da/foo' |
|
16 | $ hg ci -m 'modify da/foo' | |
17 | $ hg bookmark bookmark1 |
|
17 | $ hg bookmark bookmark1 | |
18 | $ hg up default |
|
18 | $ hg up default | |
19 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
19 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
20 | (leaving bookmark bookmark1) |
|
20 | (leaving bookmark bookmark1) | |
21 | $ hg mv foo foo-new |
|
21 | $ hg mv foo foo-new | |
22 | $ hg commit -m 'move foo' |
|
22 | $ hg commit -m 'move foo' | |
23 | $ hg tag -m 'create tag' tag1 |
|
23 | $ hg tag -m 'create tag' tag1 | |
24 | $ hg phase --public -r . |
|
24 | $ hg phase --public -r . | |
25 | $ echo baz > da/foo |
|
25 | $ echo baz > da/foo | |
26 | $ hg commit -m 'another commit to da/foo' |
|
26 | $ hg commit -m 'another commit to da/foo' | |
27 | $ hg tag -m 'create tag2' tag2 |
|
27 | $ hg tag -m 'create tag2' tag2 | |
28 | $ hg bookmark bookmark2 |
|
28 | $ hg bookmark bookmark2 | |
29 | $ hg -q up -r 0 |
|
29 | $ hg -q up -r 0 | |
30 | $ hg -q branch test-branch |
|
30 | $ hg -q branch test-branch | |
31 | $ echo branch > foo |
|
31 | $ echo branch > foo | |
32 | $ hg commit -m 'create test branch' |
|
32 | $ hg commit -m 'create test branch' | |
33 | $ echo branch_commit_2 > foo |
|
33 | $ echo branch_commit_2 > foo | |
34 | $ hg commit -m 'another commit in test-branch' |
|
34 | $ hg commit -m 'another commit in test-branch' | |
35 | $ hg -q up default |
|
35 | $ hg -q up default | |
36 | $ hg merge --tool :local test-branch |
|
36 | $ hg merge --tool :local test-branch | |
37 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
37 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
38 | (branch merge, don't forget to commit) |
|
38 | (branch merge, don't forget to commit) | |
39 | $ hg commit -m 'merge test-branch into default' |
|
39 | $ hg commit -m 'merge test-branch into default' | |
40 |
|
40 | |||
41 | $ hg log -G |
|
41 | $ hg log -G | |
42 | @ changeset: 9:cc725e08502a |
|
42 | @ changeset: 9:cc725e08502a | |
43 | |\ tag: tip |
|
43 | |\ tag: tip | |
44 | | | parent: 6:ceed296fe500 |
|
44 | | | parent: 6:ceed296fe500 | |
45 | | | parent: 8:ed66c30e87eb |
|
45 | | | parent: 8:ed66c30e87eb | |
46 | | | user: test |
|
46 | | | user: test | |
47 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
47 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
48 | | | summary: merge test-branch into default |
|
48 | | | summary: merge test-branch into default | |
49 | | | |
|
49 | | | | |
50 | | o changeset: 8:ed66c30e87eb |
|
50 | | o changeset: 8:ed66c30e87eb | |
51 | | | branch: test-branch |
|
51 | | | branch: test-branch | |
52 | | | user: test |
|
52 | | | user: test | |
53 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
53 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
54 | | | summary: another commit in test-branch |
|
54 | | | summary: another commit in test-branch | |
55 | | | |
|
55 | | | | |
56 | | o changeset: 7:6ab967a8ab34 |
|
56 | | o changeset: 7:6ab967a8ab34 | |
57 | | | branch: test-branch |
|
57 | | | branch: test-branch | |
58 | | | parent: 0:06e557f3edf6 |
|
58 | | | parent: 0:06e557f3edf6 | |
59 | | | user: test |
|
59 | | | user: test | |
60 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
60 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
61 | | | summary: create test branch |
|
61 | | | summary: create test branch | |
62 | | | |
|
62 | | | | |
63 | o | changeset: 6:ceed296fe500 |
|
63 | o | changeset: 6:ceed296fe500 | |
64 | | | bookmark: bookmark2 |
|
64 | | | bookmark: bookmark2 | |
65 | | | user: test |
|
65 | | | user: test | |
66 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
66 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
67 | | | summary: create tag2 |
|
67 | | | summary: create tag2 | |
68 | | | |
|
68 | | | | |
69 | o | changeset: 5:f2890a05fea4 |
|
69 | o | changeset: 5:f2890a05fea4 | |
70 | | | tag: tag2 |
|
70 | | | tag: tag2 | |
71 | | | user: test |
|
71 | | | user: test | |
72 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
72 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
73 | | | summary: another commit to da/foo |
|
73 | | | summary: another commit to da/foo | |
74 | | | |
|
74 | | | | |
75 | o | changeset: 4:93a8ce14f891 |
|
75 | o | changeset: 4:93a8ce14f891 | |
76 | | | user: test |
|
76 | | | user: test | |
77 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
77 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
78 | | | summary: create tag |
|
78 | | | summary: create tag | |
79 | | | |
|
79 | | | | |
80 | o | changeset: 3:78896eb0e102 |
|
80 | o | changeset: 3:78896eb0e102 | |
81 | | | tag: tag1 |
|
81 | | | tag: tag1 | |
82 | | | user: test |
|
82 | | | user: test | |
83 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
83 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
84 | | | summary: move foo |
|
84 | | | summary: move foo | |
85 | | | |
|
85 | | | | |
86 | o | changeset: 2:8d7c456572ac |
|
86 | o | changeset: 2:8d7c456572ac | |
87 | | | bookmark: bookmark1 |
|
87 | | | bookmark: bookmark1 | |
88 | | | user: test |
|
88 | | | user: test | |
89 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
89 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
90 | | | summary: modify da/foo |
|
90 | | | summary: modify da/foo | |
91 | | | |
|
91 | | | | |
92 | o | changeset: 1:f8bbb9024b10 |
|
92 | o | changeset: 1:f8bbb9024b10 | |
93 | |/ user: test |
|
93 | |/ user: test | |
94 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
94 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
95 | | summary: modify foo |
|
95 | | summary: modify foo | |
96 | | |
|
96 | | | |
97 | o changeset: 0:06e557f3edf6 |
|
97 | o changeset: 0:06e557f3edf6 | |
98 | user: test |
|
98 | user: test | |
99 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
99 | date: Thu Jan 01 00:00:00 1970 +0000 | |
100 | summary: initial |
|
100 | summary: initial | |
101 |
|
101 | |||
102 |
|
102 | |||
103 | $ echo '[web]' >> .hg/hgrc |
|
103 | $ echo '[web]' >> .hg/hgrc | |
104 | $ echo 'allow-archive = bz2' >> .hg/hgrc |
|
104 | $ echo 'allow-archive = bz2' >> .hg/hgrc | |
105 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E error.log |
|
105 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E error.log | |
106 | $ cat hg.pid >> $DAEMON_PIDS |
|
106 | $ cat hg.pid >> $DAEMON_PIDS | |
107 |
|
107 | |||
108 | (Try to keep these in roughly the order they are defined in webcommands.py) |
|
108 | (Try to keep these in roughly the order they are defined in webcommands.py) | |
109 |
|
109 | |||
110 | (log is handled by filelog/ and changelog/ - ignore it) |
|
110 | (log is handled by filelog/ and changelog/ - ignore it) | |
111 |
|
111 | |||
112 | (rawfile/ doesn't use templating - nothing to test) |
|
112 | (rawfile/ doesn't use templating - nothing to test) | |
113 |
|
113 | |||
114 | file/{revision}/{path} shows file revision |
|
114 | file/{revision}/{path} shows file revision | |
115 |
|
115 | |||
116 | $ request json-file/78896eb0e102/foo-new |
|
116 | $ request json-file/78896eb0e102/foo-new | |
117 | 200 Script output follows |
|
117 | 200 Script output follows | |
118 |
|
118 | |||
119 | { |
|
119 | { | |
120 | "bookmarks": [], |
|
120 | "bookmarks": [], | |
121 | "branch": "default", |
|
121 | "branch": "default", | |
122 | "date": [ |
|
122 | "date": [ | |
123 | 0.0, |
|
123 | 0.0, | |
124 | 0 |
|
124 | 0 | |
125 | ], |
|
125 | ], | |
126 | "desc": "move foo", |
|
126 | "desc": "move foo", | |
127 | "lines": [ |
|
127 | "lines": [ | |
128 | { |
|
128 | { | |
129 | "line": "bar\n" |
|
129 | "line": "bar\n" | |
130 | } |
|
130 | } | |
131 | ], |
|
131 | ], | |
132 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
132 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
133 | "parents": [ |
|
133 | "parents": [ | |
134 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
134 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
135 | ], |
|
135 | ], | |
136 | "path": "foo-new", |
|
136 | "path": "foo-new", | |
137 | "phase": "public", |
|
137 | "phase": "public", | |
138 | "tags": [ |
|
138 | "tags": [ | |
139 | "tag1" |
|
139 | "tag1" | |
140 | ], |
|
140 | ], | |
141 | "user": "test" |
|
141 | "user": "test" | |
142 | } |
|
142 | } | |
143 |
|
143 | |||
144 | file/{revision} shows root directory info |
|
144 | file/{revision} shows root directory info | |
145 |
|
145 | |||
146 | $ request json-file/cc725e08502a |
|
146 | $ request json-file/cc725e08502a | |
147 | 200 Script output follows |
|
147 | 200 Script output follows | |
148 |
|
148 | |||
149 | { |
|
149 | { | |
150 | "abspath": "/", |
|
150 | "abspath": "/", | |
151 | "bookmarks": [], |
|
151 | "bookmarks": [], | |
152 | "directories": [ |
|
152 | "directories": [ | |
153 | { |
|
153 | { | |
154 | "abspath": "/da", |
|
154 | "abspath": "/da", | |
155 | "basename": "da", |
|
155 | "basename": "da", | |
156 | "emptydirs": "" |
|
156 | "emptydirs": "" | |
157 | } |
|
157 | } | |
158 | ], |
|
158 | ], | |
159 | "files": [ |
|
159 | "files": [ | |
160 | { |
|
160 | { | |
161 | "abspath": ".hgtags", |
|
161 | "abspath": ".hgtags", | |
162 | "basename": ".hgtags", |
|
162 | "basename": ".hgtags", | |
163 | "date": [ |
|
163 | "date": [ | |
164 | 0.0, |
|
164 | 0.0, | |
165 | 0 |
|
165 | 0 | |
166 | ], |
|
166 | ], | |
167 | "flags": "", |
|
167 | "flags": "", | |
168 | "size": 92 |
|
168 | "size": 92 | |
169 | }, |
|
169 | }, | |
170 | { |
|
170 | { | |
171 | "abspath": "foo-new", |
|
171 | "abspath": "foo-new", | |
172 | "basename": "foo-new", |
|
172 | "basename": "foo-new", | |
173 | "date": [ |
|
173 | "date": [ | |
174 | 0.0, |
|
174 | 0.0, | |
175 | 0 |
|
175 | 0 | |
176 | ], |
|
176 | ], | |
177 | "flags": "", |
|
177 | "flags": "", | |
178 | "size": 4 |
|
178 | "size": 4 | |
179 | } |
|
179 | } | |
180 | ], |
|
180 | ], | |
181 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
181 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
182 | "tags": [ |
|
182 | "tags": [ | |
183 | "tip" |
|
183 | "tip" | |
184 | ] |
|
184 | ] | |
185 | } |
|
185 | } | |
186 |
|
186 | |||
187 | changelog/ shows information about several changesets |
|
187 | changelog/ shows information about several changesets | |
188 |
|
188 | |||
189 | $ request json-changelog |
|
189 | $ request json-changelog | |
190 | 200 Script output follows |
|
190 | 200 Script output follows | |
191 |
|
191 | |||
192 | { |
|
192 | { | |
193 | "changeset_count": 10, |
|
193 | "changeset_count": 10, | |
194 | "changesets": [ |
|
194 | "changesets": [ | |
195 | { |
|
195 | { | |
196 | "bookmarks": [], |
|
196 | "bookmarks": [], | |
197 | "branch": "default", |
|
197 | "branch": "default", | |
198 | "date": [ |
|
198 | "date": [ | |
199 | 0.0, |
|
199 | 0.0, | |
200 | 0 |
|
200 | 0 | |
201 | ], |
|
201 | ], | |
202 | "desc": "merge test-branch into default", |
|
202 | "desc": "merge test-branch into default", | |
203 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
203 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
204 | "parents": [ |
|
204 | "parents": [ | |
205 | "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
205 | "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
206 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" |
|
206 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" | |
207 | ], |
|
207 | ], | |
208 | "phase": "draft", |
|
208 | "phase": "draft", | |
209 | "tags": [ |
|
209 | "tags": [ | |
210 | "tip" |
|
210 | "tip" | |
211 | ], |
|
211 | ], | |
212 | "user": "test" |
|
212 | "user": "test" | |
213 | }, |
|
213 | }, | |
214 | { |
|
214 | { | |
215 | "bookmarks": [], |
|
215 | "bookmarks": [], | |
216 | "branch": "test-branch", |
|
216 | "branch": "test-branch", | |
217 | "date": [ |
|
217 | "date": [ | |
218 | 0.0, |
|
218 | 0.0, | |
219 | 0 |
|
219 | 0 | |
220 | ], |
|
220 | ], | |
221 | "desc": "another commit in test-branch", |
|
221 | "desc": "another commit in test-branch", | |
222 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", |
|
222 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", | |
223 | "parents": [ |
|
223 | "parents": [ | |
224 | "6ab967a8ab3489227a83f80e920faa039a71819f" |
|
224 | "6ab967a8ab3489227a83f80e920faa039a71819f" | |
225 | ], |
|
225 | ], | |
226 | "phase": "draft", |
|
226 | "phase": "draft", | |
227 | "tags": [], |
|
227 | "tags": [], | |
228 | "user": "test" |
|
228 | "user": "test" | |
229 | }, |
|
229 | }, | |
230 | { |
|
230 | { | |
231 | "bookmarks": [], |
|
231 | "bookmarks": [], | |
232 | "branch": "test-branch", |
|
232 | "branch": "test-branch", | |
233 | "date": [ |
|
233 | "date": [ | |
234 | 0.0, |
|
234 | 0.0, | |
235 | 0 |
|
235 | 0 | |
236 | ], |
|
236 | ], | |
237 | "desc": "create test branch", |
|
237 | "desc": "create test branch", | |
238 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", |
|
238 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", | |
239 | "parents": [ |
|
239 | "parents": [ | |
240 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
240 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
241 | ], |
|
241 | ], | |
242 | "phase": "draft", |
|
242 | "phase": "draft", | |
243 | "tags": [], |
|
243 | "tags": [], | |
244 | "user": "test" |
|
244 | "user": "test" | |
245 | }, |
|
245 | }, | |
246 | { |
|
246 | { | |
247 | "bookmarks": [ |
|
247 | "bookmarks": [ | |
248 | "bookmark2" |
|
248 | "bookmark2" | |
249 | ], |
|
249 | ], | |
250 | "branch": "default", |
|
250 | "branch": "default", | |
251 | "date": [ |
|
251 | "date": [ | |
252 | 0.0, |
|
252 | 0.0, | |
253 | 0 |
|
253 | 0 | |
254 | ], |
|
254 | ], | |
255 | "desc": "create tag2", |
|
255 | "desc": "create tag2", | |
256 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
256 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
257 | "parents": [ |
|
257 | "parents": [ | |
258 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" |
|
258 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" | |
259 | ], |
|
259 | ], | |
260 | "phase": "draft", |
|
260 | "phase": "draft", | |
261 | "tags": [], |
|
261 | "tags": [], | |
262 | "user": "test" |
|
262 | "user": "test" | |
263 | }, |
|
263 | }, | |
264 | { |
|
264 | { | |
265 | "bookmarks": [], |
|
265 | "bookmarks": [], | |
266 | "branch": "default", |
|
266 | "branch": "default", | |
267 | "date": [ |
|
267 | "date": [ | |
268 | 0.0, |
|
268 | 0.0, | |
269 | 0 |
|
269 | 0 | |
270 | ], |
|
270 | ], | |
271 | "desc": "another commit to da/foo", |
|
271 | "desc": "another commit to da/foo", | |
272 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", |
|
272 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", | |
273 | "parents": [ |
|
273 | "parents": [ | |
274 | "93a8ce14f89156426b7fa981af8042da53f03aa0" |
|
274 | "93a8ce14f89156426b7fa981af8042da53f03aa0" | |
275 | ], |
|
275 | ], | |
276 | "phase": "draft", |
|
276 | "phase": "draft", | |
277 | "tags": [ |
|
277 | "tags": [ | |
278 | "tag2" |
|
278 | "tag2" | |
279 | ], |
|
279 | ], | |
280 | "user": "test" |
|
280 | "user": "test" | |
281 | }, |
|
281 | }, | |
282 | { |
|
282 | { | |
283 | "bookmarks": [], |
|
283 | "bookmarks": [], | |
284 | "branch": "default", |
|
284 | "branch": "default", | |
285 | "date": [ |
|
285 | "date": [ | |
286 | 0.0, |
|
286 | 0.0, | |
287 | 0 |
|
287 | 0 | |
288 | ], |
|
288 | ], | |
289 | "desc": "create tag", |
|
289 | "desc": "create tag", | |
290 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", |
|
290 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", | |
291 | "parents": [ |
|
291 | "parents": [ | |
292 | "78896eb0e102174ce9278438a95e12543e4367a7" |
|
292 | "78896eb0e102174ce9278438a95e12543e4367a7" | |
293 | ], |
|
293 | ], | |
294 | "phase": "public", |
|
294 | "phase": "public", | |
295 | "tags": [], |
|
295 | "tags": [], | |
296 | "user": "test" |
|
296 | "user": "test" | |
297 | }, |
|
297 | }, | |
298 | { |
|
298 | { | |
299 | "bookmarks": [], |
|
299 | "bookmarks": [], | |
300 | "branch": "default", |
|
300 | "branch": "default", | |
301 | "date": [ |
|
301 | "date": [ | |
302 | 0.0, |
|
302 | 0.0, | |
303 | 0 |
|
303 | 0 | |
304 | ], |
|
304 | ], | |
305 | "desc": "move foo", |
|
305 | "desc": "move foo", | |
306 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
306 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
307 | "parents": [ |
|
307 | "parents": [ | |
308 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
308 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
309 | ], |
|
309 | ], | |
310 | "phase": "public", |
|
310 | "phase": "public", | |
311 | "tags": [ |
|
311 | "tags": [ | |
312 | "tag1" |
|
312 | "tag1" | |
313 | ], |
|
313 | ], | |
314 | "user": "test" |
|
314 | "user": "test" | |
315 | }, |
|
315 | }, | |
316 | { |
|
316 | { | |
317 | "bookmarks": [ |
|
317 | "bookmarks": [ | |
318 | "bookmark1" |
|
318 | "bookmark1" | |
319 | ], |
|
319 | ], | |
320 | "branch": "default", |
|
320 | "branch": "default", | |
321 | "date": [ |
|
321 | "date": [ | |
322 | 0.0, |
|
322 | 0.0, | |
323 | 0 |
|
323 | 0 | |
324 | ], |
|
324 | ], | |
325 | "desc": "modify da/foo", |
|
325 | "desc": "modify da/foo", | |
326 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", |
|
326 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", | |
327 | "parents": [ |
|
327 | "parents": [ | |
328 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
328 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
329 | ], |
|
329 | ], | |
330 | "phase": "public", |
|
330 | "phase": "public", | |
331 | "tags": [], |
|
331 | "tags": [], | |
332 | "user": "test" |
|
332 | "user": "test" | |
333 | }, |
|
333 | }, | |
334 | { |
|
334 | { | |
335 | "bookmarks": [], |
|
335 | "bookmarks": [], | |
336 | "branch": "default", |
|
336 | "branch": "default", | |
337 | "date": [ |
|
337 | "date": [ | |
338 | 0.0, |
|
338 | 0.0, | |
339 | 0 |
|
339 | 0 | |
340 | ], |
|
340 | ], | |
341 | "desc": "modify foo", |
|
341 | "desc": "modify foo", | |
342 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
342 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
343 | "parents": [ |
|
343 | "parents": [ | |
344 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
344 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
345 | ], |
|
345 | ], | |
346 | "phase": "public", |
|
346 | "phase": "public", | |
347 | "tags": [], |
|
347 | "tags": [], | |
348 | "user": "test" |
|
348 | "user": "test" | |
349 | }, |
|
349 | }, | |
350 | { |
|
350 | { | |
351 | "bookmarks": [], |
|
351 | "bookmarks": [], | |
352 | "branch": "default", |
|
352 | "branch": "default", | |
353 | "date": [ |
|
353 | "date": [ | |
354 | 0.0, |
|
354 | 0.0, | |
355 | 0 |
|
355 | 0 | |
356 | ], |
|
356 | ], | |
357 | "desc": "initial", |
|
357 | "desc": "initial", | |
358 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
358 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
359 | "parents": [], |
|
359 | "parents": [], | |
360 | "phase": "public", |
|
360 | "phase": "public", | |
361 | "tags": [], |
|
361 | "tags": [], | |
362 | "user": "test" |
|
362 | "user": "test" | |
363 | } |
|
363 | } | |
364 | ], |
|
364 | ], | |
365 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" |
|
365 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" | |
366 | } |
|
366 | } | |
367 |
|
367 | |||
368 | changelog/{revision} shows information starting at a specific changeset |
|
368 | changelog/{revision} shows information starting at a specific changeset | |
369 |
|
369 | |||
370 | $ request json-changelog/f8bbb9024b10 |
|
370 | $ request json-changelog/f8bbb9024b10 | |
371 | 200 Script output follows |
|
371 | 200 Script output follows | |
372 |
|
372 | |||
373 | { |
|
373 | { | |
374 | "changeset_count": 10, |
|
374 | "changeset_count": 10, | |
375 | "changesets": [ |
|
375 | "changesets": [ | |
376 | { |
|
376 | { | |
377 | "bookmarks": [], |
|
377 | "bookmarks": [], | |
378 | "branch": "default", |
|
378 | "branch": "default", | |
379 | "date": [ |
|
379 | "date": [ | |
380 | 0.0, |
|
380 | 0.0, | |
381 | 0 |
|
381 | 0 | |
382 | ], |
|
382 | ], | |
383 | "desc": "modify foo", |
|
383 | "desc": "modify foo", | |
384 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
384 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
385 | "parents": [ |
|
385 | "parents": [ | |
386 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
386 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
387 | ], |
|
387 | ], | |
388 | "phase": "public", |
|
388 | "phase": "public", | |
389 | "tags": [], |
|
389 | "tags": [], | |
390 | "user": "test" |
|
390 | "user": "test" | |
391 | }, |
|
391 | }, | |
392 | { |
|
392 | { | |
393 | "bookmarks": [], |
|
393 | "bookmarks": [], | |
394 | "branch": "default", |
|
394 | "branch": "default", | |
395 | "date": [ |
|
395 | "date": [ | |
396 | 0.0, |
|
396 | 0.0, | |
397 | 0 |
|
397 | 0 | |
398 | ], |
|
398 | ], | |
399 | "desc": "initial", |
|
399 | "desc": "initial", | |
400 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
400 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
401 | "parents": [], |
|
401 | "parents": [], | |
402 | "phase": "public", |
|
402 | "phase": "public", | |
403 | "tags": [], |
|
403 | "tags": [], | |
404 | "user": "test" |
|
404 | "user": "test" | |
405 | } |
|
405 | } | |
406 | ], |
|
406 | ], | |
407 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
407 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
408 | } |
|
408 | } | |
409 |
|
409 | |||
410 | shortlog/ shows information about a set of changesets |
|
410 | shortlog/ shows information about a set of changesets | |
411 |
|
411 | |||
412 | $ request json-shortlog |
|
412 | $ request json-shortlog | |
413 | 200 Script output follows |
|
413 | 200 Script output follows | |
414 |
|
414 | |||
415 | { |
|
415 | { | |
416 | "changeset_count": 10, |
|
416 | "changeset_count": 10, | |
417 | "changesets": [ |
|
417 | "changesets": [ | |
418 | { |
|
418 | { | |
419 | "bookmarks": [], |
|
419 | "bookmarks": [], | |
420 | "branch": "default", |
|
420 | "branch": "default", | |
421 | "date": [ |
|
421 | "date": [ | |
422 | 0.0, |
|
422 | 0.0, | |
423 | 0 |
|
423 | 0 | |
424 | ], |
|
424 | ], | |
425 | "desc": "merge test-branch into default", |
|
425 | "desc": "merge test-branch into default", | |
426 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
426 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
427 | "parents": [ |
|
427 | "parents": [ | |
428 | "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
428 | "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
429 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" |
|
429 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" | |
430 | ], |
|
430 | ], | |
431 | "phase": "draft", |
|
431 | "phase": "draft", | |
432 | "tags": [ |
|
432 | "tags": [ | |
433 | "tip" |
|
433 | "tip" | |
434 | ], |
|
434 | ], | |
435 | "user": "test" |
|
435 | "user": "test" | |
436 | }, |
|
436 | }, | |
437 | { |
|
437 | { | |
438 | "bookmarks": [], |
|
438 | "bookmarks": [], | |
439 | "branch": "test-branch", |
|
439 | "branch": "test-branch", | |
440 | "date": [ |
|
440 | "date": [ | |
441 | 0.0, |
|
441 | 0.0, | |
442 | 0 |
|
442 | 0 | |
443 | ], |
|
443 | ], | |
444 | "desc": "another commit in test-branch", |
|
444 | "desc": "another commit in test-branch", | |
445 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", |
|
445 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", | |
446 | "parents": [ |
|
446 | "parents": [ | |
447 | "6ab967a8ab3489227a83f80e920faa039a71819f" |
|
447 | "6ab967a8ab3489227a83f80e920faa039a71819f" | |
448 | ], |
|
448 | ], | |
449 | "phase": "draft", |
|
449 | "phase": "draft", | |
450 | "tags": [], |
|
450 | "tags": [], | |
451 | "user": "test" |
|
451 | "user": "test" | |
452 | }, |
|
452 | }, | |
453 | { |
|
453 | { | |
454 | "bookmarks": [], |
|
454 | "bookmarks": [], | |
455 | "branch": "test-branch", |
|
455 | "branch": "test-branch", | |
456 | "date": [ |
|
456 | "date": [ | |
457 | 0.0, |
|
457 | 0.0, | |
458 | 0 |
|
458 | 0 | |
459 | ], |
|
459 | ], | |
460 | "desc": "create test branch", |
|
460 | "desc": "create test branch", | |
461 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", |
|
461 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", | |
462 | "parents": [ |
|
462 | "parents": [ | |
463 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
463 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
464 | ], |
|
464 | ], | |
465 | "phase": "draft", |
|
465 | "phase": "draft", | |
466 | "tags": [], |
|
466 | "tags": [], | |
467 | "user": "test" |
|
467 | "user": "test" | |
468 | }, |
|
468 | }, | |
469 | { |
|
469 | { | |
470 | "bookmarks": [ |
|
470 | "bookmarks": [ | |
471 | "bookmark2" |
|
471 | "bookmark2" | |
472 | ], |
|
472 | ], | |
473 | "branch": "default", |
|
473 | "branch": "default", | |
474 | "date": [ |
|
474 | "date": [ | |
475 | 0.0, |
|
475 | 0.0, | |
476 | 0 |
|
476 | 0 | |
477 | ], |
|
477 | ], | |
478 | "desc": "create tag2", |
|
478 | "desc": "create tag2", | |
479 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
479 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
480 | "parents": [ |
|
480 | "parents": [ | |
481 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" |
|
481 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" | |
482 | ], |
|
482 | ], | |
483 | "phase": "draft", |
|
483 | "phase": "draft", | |
484 | "tags": [], |
|
484 | "tags": [], | |
485 | "user": "test" |
|
485 | "user": "test" | |
486 | }, |
|
486 | }, | |
487 | { |
|
487 | { | |
488 | "bookmarks": [], |
|
488 | "bookmarks": [], | |
489 | "branch": "default", |
|
489 | "branch": "default", | |
490 | "date": [ |
|
490 | "date": [ | |
491 | 0.0, |
|
491 | 0.0, | |
492 | 0 |
|
492 | 0 | |
493 | ], |
|
493 | ], | |
494 | "desc": "another commit to da/foo", |
|
494 | "desc": "another commit to da/foo", | |
495 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", |
|
495 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", | |
496 | "parents": [ |
|
496 | "parents": [ | |
497 | "93a8ce14f89156426b7fa981af8042da53f03aa0" |
|
497 | "93a8ce14f89156426b7fa981af8042da53f03aa0" | |
498 | ], |
|
498 | ], | |
499 | "phase": "draft", |
|
499 | "phase": "draft", | |
500 | "tags": [ |
|
500 | "tags": [ | |
501 | "tag2" |
|
501 | "tag2" | |
502 | ], |
|
502 | ], | |
503 | "user": "test" |
|
503 | "user": "test" | |
504 | }, |
|
504 | }, | |
505 | { |
|
505 | { | |
506 | "bookmarks": [], |
|
506 | "bookmarks": [], | |
507 | "branch": "default", |
|
507 | "branch": "default", | |
508 | "date": [ |
|
508 | "date": [ | |
509 | 0.0, |
|
509 | 0.0, | |
510 | 0 |
|
510 | 0 | |
511 | ], |
|
511 | ], | |
512 | "desc": "create tag", |
|
512 | "desc": "create tag", | |
513 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", |
|
513 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", | |
514 | "parents": [ |
|
514 | "parents": [ | |
515 | "78896eb0e102174ce9278438a95e12543e4367a7" |
|
515 | "78896eb0e102174ce9278438a95e12543e4367a7" | |
516 | ], |
|
516 | ], | |
517 | "phase": "public", |
|
517 | "phase": "public", | |
518 | "tags": [], |
|
518 | "tags": [], | |
519 | "user": "test" |
|
519 | "user": "test" | |
520 | }, |
|
520 | }, | |
521 | { |
|
521 | { | |
522 | "bookmarks": [], |
|
522 | "bookmarks": [], | |
523 | "branch": "default", |
|
523 | "branch": "default", | |
524 | "date": [ |
|
524 | "date": [ | |
525 | 0.0, |
|
525 | 0.0, | |
526 | 0 |
|
526 | 0 | |
527 | ], |
|
527 | ], | |
528 | "desc": "move foo", |
|
528 | "desc": "move foo", | |
529 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
529 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
530 | "parents": [ |
|
530 | "parents": [ | |
531 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
531 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
532 | ], |
|
532 | ], | |
533 | "phase": "public", |
|
533 | "phase": "public", | |
534 | "tags": [ |
|
534 | "tags": [ | |
535 | "tag1" |
|
535 | "tag1" | |
536 | ], |
|
536 | ], | |
537 | "user": "test" |
|
537 | "user": "test" | |
538 | }, |
|
538 | }, | |
539 | { |
|
539 | { | |
540 | "bookmarks": [ |
|
540 | "bookmarks": [ | |
541 | "bookmark1" |
|
541 | "bookmark1" | |
542 | ], |
|
542 | ], | |
543 | "branch": "default", |
|
543 | "branch": "default", | |
544 | "date": [ |
|
544 | "date": [ | |
545 | 0.0, |
|
545 | 0.0, | |
546 | 0 |
|
546 | 0 | |
547 | ], |
|
547 | ], | |
548 | "desc": "modify da/foo", |
|
548 | "desc": "modify da/foo", | |
549 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", |
|
549 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", | |
550 | "parents": [ |
|
550 | "parents": [ | |
551 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
551 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
552 | ], |
|
552 | ], | |
553 | "phase": "public", |
|
553 | "phase": "public", | |
554 | "tags": [], |
|
554 | "tags": [], | |
555 | "user": "test" |
|
555 | "user": "test" | |
556 | }, |
|
556 | }, | |
557 | { |
|
557 | { | |
558 | "bookmarks": [], |
|
558 | "bookmarks": [], | |
559 | "branch": "default", |
|
559 | "branch": "default", | |
560 | "date": [ |
|
560 | "date": [ | |
561 | 0.0, |
|
561 | 0.0, | |
562 | 0 |
|
562 | 0 | |
563 | ], |
|
563 | ], | |
564 | "desc": "modify foo", |
|
564 | "desc": "modify foo", | |
565 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
565 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
566 | "parents": [ |
|
566 | "parents": [ | |
567 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
567 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
568 | ], |
|
568 | ], | |
569 | "phase": "public", |
|
569 | "phase": "public", | |
570 | "tags": [], |
|
570 | "tags": [], | |
571 | "user": "test" |
|
571 | "user": "test" | |
572 | }, |
|
572 | }, | |
573 | { |
|
573 | { | |
574 | "bookmarks": [], |
|
574 | "bookmarks": [], | |
575 | "branch": "default", |
|
575 | "branch": "default", | |
576 | "date": [ |
|
576 | "date": [ | |
577 | 0.0, |
|
577 | 0.0, | |
578 | 0 |
|
578 | 0 | |
579 | ], |
|
579 | ], | |
580 | "desc": "initial", |
|
580 | "desc": "initial", | |
581 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
581 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
582 | "parents": [], |
|
582 | "parents": [], | |
583 | "phase": "public", |
|
583 | "phase": "public", | |
584 | "tags": [], |
|
584 | "tags": [], | |
585 | "user": "test" |
|
585 | "user": "test" | |
586 | } |
|
586 | } | |
587 | ], |
|
587 | ], | |
588 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" |
|
588 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" | |
589 | } |
|
589 | } | |
590 |
|
590 | |||
591 | shortlog is displayed by default (issue5978) |
|
591 | shortlog is displayed by default (issue5978) | |
592 |
|
592 | |||
593 | $ request '?style=json' |
|
593 | $ request '?style=json' | |
594 | 200 Script output follows |
|
594 | 200 Script output follows | |
595 |
|
595 | |||
596 | { |
|
596 | { | |
597 | "changeset_count": 10, |
|
597 | "changeset_count": 10, | |
598 | "changesets": [ |
|
598 | "changesets": [ | |
599 | { |
|
599 | { | |
600 | "bookmarks": [], |
|
600 | "bookmarks": [], | |
601 | "branch": "default", |
|
601 | "branch": "default", | |
602 | "date": [ |
|
602 | "date": [ | |
603 | 0.0, |
|
603 | 0.0, | |
604 | 0 |
|
604 | 0 | |
605 | ], |
|
605 | ], | |
606 | "desc": "merge test-branch into default", |
|
606 | "desc": "merge test-branch into default", | |
607 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
607 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
608 | "parents": [ |
|
608 | "parents": [ | |
609 | "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
609 | "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
610 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" |
|
610 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" | |
611 | ], |
|
611 | ], | |
612 | "phase": "draft", |
|
612 | "phase": "draft", | |
613 | "tags": [ |
|
613 | "tags": [ | |
614 | "tip" |
|
614 | "tip" | |
615 | ], |
|
615 | ], | |
616 | "user": "test" |
|
616 | "user": "test" | |
617 | }, |
|
617 | }, | |
618 | { |
|
618 | { | |
619 | "bookmarks": [], |
|
619 | "bookmarks": [], | |
620 | "branch": "test-branch", |
|
620 | "branch": "test-branch", | |
621 | "date": [ |
|
621 | "date": [ | |
622 | 0.0, |
|
622 | 0.0, | |
623 | 0 |
|
623 | 0 | |
624 | ], |
|
624 | ], | |
625 | "desc": "another commit in test-branch", |
|
625 | "desc": "another commit in test-branch", | |
626 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", |
|
626 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", | |
627 | "parents": [ |
|
627 | "parents": [ | |
628 | "6ab967a8ab3489227a83f80e920faa039a71819f" |
|
628 | "6ab967a8ab3489227a83f80e920faa039a71819f" | |
629 | ], |
|
629 | ], | |
630 | "phase": "draft", |
|
630 | "phase": "draft", | |
631 | "tags": [], |
|
631 | "tags": [], | |
632 | "user": "test" |
|
632 | "user": "test" | |
633 | }, |
|
633 | }, | |
634 | { |
|
634 | { | |
635 | "bookmarks": [], |
|
635 | "bookmarks": [], | |
636 | "branch": "test-branch", |
|
636 | "branch": "test-branch", | |
637 | "date": [ |
|
637 | "date": [ | |
638 | 0.0, |
|
638 | 0.0, | |
639 | 0 |
|
639 | 0 | |
640 | ], |
|
640 | ], | |
641 | "desc": "create test branch", |
|
641 | "desc": "create test branch", | |
642 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", |
|
642 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", | |
643 | "parents": [ |
|
643 | "parents": [ | |
644 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
644 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
645 | ], |
|
645 | ], | |
646 | "phase": "draft", |
|
646 | "phase": "draft", | |
647 | "tags": [], |
|
647 | "tags": [], | |
648 | "user": "test" |
|
648 | "user": "test" | |
649 | }, |
|
649 | }, | |
650 | { |
|
650 | { | |
651 | "bookmarks": [ |
|
651 | "bookmarks": [ | |
652 | "bookmark2" |
|
652 | "bookmark2" | |
653 | ], |
|
653 | ], | |
654 | "branch": "default", |
|
654 | "branch": "default", | |
655 | "date": [ |
|
655 | "date": [ | |
656 | 0.0, |
|
656 | 0.0, | |
657 | 0 |
|
657 | 0 | |
658 | ], |
|
658 | ], | |
659 | "desc": "create tag2", |
|
659 | "desc": "create tag2", | |
660 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
660 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
661 | "parents": [ |
|
661 | "parents": [ | |
662 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" |
|
662 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" | |
663 | ], |
|
663 | ], | |
664 | "phase": "draft", |
|
664 | "phase": "draft", | |
665 | "tags": [], |
|
665 | "tags": [], | |
666 | "user": "test" |
|
666 | "user": "test" | |
667 | }, |
|
667 | }, | |
668 | { |
|
668 | { | |
669 | "bookmarks": [], |
|
669 | "bookmarks": [], | |
670 | "branch": "default", |
|
670 | "branch": "default", | |
671 | "date": [ |
|
671 | "date": [ | |
672 | 0.0, |
|
672 | 0.0, | |
673 | 0 |
|
673 | 0 | |
674 | ], |
|
674 | ], | |
675 | "desc": "another commit to da/foo", |
|
675 | "desc": "another commit to da/foo", | |
676 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", |
|
676 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", | |
677 | "parents": [ |
|
677 | "parents": [ | |
678 | "93a8ce14f89156426b7fa981af8042da53f03aa0" |
|
678 | "93a8ce14f89156426b7fa981af8042da53f03aa0" | |
679 | ], |
|
679 | ], | |
680 | "phase": "draft", |
|
680 | "phase": "draft", | |
681 | "tags": [ |
|
681 | "tags": [ | |
682 | "tag2" |
|
682 | "tag2" | |
683 | ], |
|
683 | ], | |
684 | "user": "test" |
|
684 | "user": "test" | |
685 | }, |
|
685 | }, | |
686 | { |
|
686 | { | |
687 | "bookmarks": [], |
|
687 | "bookmarks": [], | |
688 | "branch": "default", |
|
688 | "branch": "default", | |
689 | "date": [ |
|
689 | "date": [ | |
690 | 0.0, |
|
690 | 0.0, | |
691 | 0 |
|
691 | 0 | |
692 | ], |
|
692 | ], | |
693 | "desc": "create tag", |
|
693 | "desc": "create tag", | |
694 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", |
|
694 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", | |
695 | "parents": [ |
|
695 | "parents": [ | |
696 | "78896eb0e102174ce9278438a95e12543e4367a7" |
|
696 | "78896eb0e102174ce9278438a95e12543e4367a7" | |
697 | ], |
|
697 | ], | |
698 | "phase": "public", |
|
698 | "phase": "public", | |
699 | "tags": [], |
|
699 | "tags": [], | |
700 | "user": "test" |
|
700 | "user": "test" | |
701 | }, |
|
701 | }, | |
702 | { |
|
702 | { | |
703 | "bookmarks": [], |
|
703 | "bookmarks": [], | |
704 | "branch": "default", |
|
704 | "branch": "default", | |
705 | "date": [ |
|
705 | "date": [ | |
706 | 0.0, |
|
706 | 0.0, | |
707 | 0 |
|
707 | 0 | |
708 | ], |
|
708 | ], | |
709 | "desc": "move foo", |
|
709 | "desc": "move foo", | |
710 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
710 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
711 | "parents": [ |
|
711 | "parents": [ | |
712 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
712 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
713 | ], |
|
713 | ], | |
714 | "phase": "public", |
|
714 | "phase": "public", | |
715 | "tags": [ |
|
715 | "tags": [ | |
716 | "tag1" |
|
716 | "tag1" | |
717 | ], |
|
717 | ], | |
718 | "user": "test" |
|
718 | "user": "test" | |
719 | }, |
|
719 | }, | |
720 | { |
|
720 | { | |
721 | "bookmarks": [ |
|
721 | "bookmarks": [ | |
722 | "bookmark1" |
|
722 | "bookmark1" | |
723 | ], |
|
723 | ], | |
724 | "branch": "default", |
|
724 | "branch": "default", | |
725 | "date": [ |
|
725 | "date": [ | |
726 | 0.0, |
|
726 | 0.0, | |
727 | 0 |
|
727 | 0 | |
728 | ], |
|
728 | ], | |
729 | "desc": "modify da/foo", |
|
729 | "desc": "modify da/foo", | |
730 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", |
|
730 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", | |
731 | "parents": [ |
|
731 | "parents": [ | |
732 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
732 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
733 | ], |
|
733 | ], | |
734 | "phase": "public", |
|
734 | "phase": "public", | |
735 | "tags": [], |
|
735 | "tags": [], | |
736 | "user": "test" |
|
736 | "user": "test" | |
737 | }, |
|
737 | }, | |
738 | { |
|
738 | { | |
739 | "bookmarks": [], |
|
739 | "bookmarks": [], | |
740 | "branch": "default", |
|
740 | "branch": "default", | |
741 | "date": [ |
|
741 | "date": [ | |
742 | 0.0, |
|
742 | 0.0, | |
743 | 0 |
|
743 | 0 | |
744 | ], |
|
744 | ], | |
745 | "desc": "modify foo", |
|
745 | "desc": "modify foo", | |
746 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
746 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
747 | "parents": [ |
|
747 | "parents": [ | |
748 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
748 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
749 | ], |
|
749 | ], | |
750 | "phase": "public", |
|
750 | "phase": "public", | |
751 | "tags": [], |
|
751 | "tags": [], | |
752 | "user": "test" |
|
752 | "user": "test" | |
753 | }, |
|
753 | }, | |
754 | { |
|
754 | { | |
755 | "bookmarks": [], |
|
755 | "bookmarks": [], | |
756 | "branch": "default", |
|
756 | "branch": "default", | |
757 | "date": [ |
|
757 | "date": [ | |
758 | 0.0, |
|
758 | 0.0, | |
759 | 0 |
|
759 | 0 | |
760 | ], |
|
760 | ], | |
761 | "desc": "initial", |
|
761 | "desc": "initial", | |
762 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
762 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
763 | "parents": [], |
|
763 | "parents": [], | |
764 | "phase": "public", |
|
764 | "phase": "public", | |
765 | "tags": [], |
|
765 | "tags": [], | |
766 | "user": "test" |
|
766 | "user": "test" | |
767 | } |
|
767 | } | |
768 | ], |
|
768 | ], | |
769 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" |
|
769 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" | |
770 | } |
|
770 | } | |
771 |
|
771 | |||
772 | changeset/ renders the tip changeset |
|
772 | changeset/ renders the tip changeset | |
773 |
|
773 | |||
774 | $ request json-rev |
|
774 | $ request json-rev | |
775 | 200 Script output follows |
|
775 | 200 Script output follows | |
776 |
|
776 | |||
777 | { |
|
777 | { | |
778 | "bookmarks": [], |
|
778 | "bookmarks": [], | |
779 | "branch": "default", |
|
779 | "branch": "default", | |
780 | "date": [ |
|
780 | "date": [ | |
781 | 0.0, |
|
781 | 0.0, | |
782 | 0 |
|
782 | 0 | |
783 | ], |
|
783 | ], | |
784 | "desc": "merge test-branch into default", |
|
784 | "desc": "merge test-branch into default", | |
|
785 | "diff": [], | |||
785 | "files": [ |
|
786 | "files": [ | |
786 | { |
|
787 | { | |
787 | "file": "foo-new", |
|
788 | "file": "foo-new", | |
788 | "status": "modified" |
|
789 | "status": "modified" | |
789 | } |
|
790 | } | |
790 | ], |
|
791 | ], | |
791 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
792 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
792 | "parents": [ |
|
793 | "parents": [ | |
793 | "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
794 | "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
794 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" |
|
795 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" | |
795 | ], |
|
796 | ], | |
796 | "phase": "draft", |
|
797 | "phase": "draft", | |
797 | "tags": [ |
|
798 | "tags": [ | |
798 | "tip" |
|
799 | "tip" | |
799 | ], |
|
800 | ], | |
800 | "user": "test" |
|
801 | "user": "test" | |
801 | } |
|
802 | } | |
802 |
|
803 | |||
803 | changeset/{revision} shows tags |
|
804 | changeset/{revision} shows tags | |
804 |
|
805 | |||
805 | $ request json-rev/78896eb0e102 |
|
806 | $ request json-rev/78896eb0e102 | |
806 | 200 Script output follows |
|
807 | 200 Script output follows | |
807 |
|
808 | |||
808 | { |
|
809 | { | |
809 | "bookmarks": [], |
|
810 | "bookmarks": [], | |
810 | "branch": "default", |
|
811 | "branch": "default", | |
811 | "date": [ |
|
812 | "date": [ | |
812 | 0.0, |
|
813 | 0.0, | |
813 | 0 |
|
814 | 0 | |
814 | ], |
|
815 | ], | |
815 | "desc": "move foo", |
|
816 | "desc": "move foo", | |
|
817 | "diff": [ | |||
|
818 | { | |||
|
819 | "blockno": 1, | |||
|
820 | "lines": [ | |||
|
821 | { | |||
|
822 | "l": "--- a/foo\tThu Jan 01 00:00:00 1970 +0000\n", | |||
|
823 | "n": 1, | |||
|
824 | "t": "-" | |||
|
825 | }, | |||
|
826 | { | |||
|
827 | "l": "+++ /dev/null\tThu Jan 01 00:00:00 1970 +0000\n", | |||
|
828 | "n": 2, | |||
|
829 | "t": "+" | |||
|
830 | }, | |||
|
831 | { | |||
|
832 | "l": "@@ -1,1 +0,0 @@\n", | |||
|
833 | "n": 3, | |||
|
834 | "t": "@" | |||
|
835 | }, | |||
|
836 | { | |||
|
837 | "l": "-bar\n", | |||
|
838 | "n": 4, | |||
|
839 | "t": "-" | |||
|
840 | } | |||
|
841 | ] | |||
|
842 | }, | |||
|
843 | { | |||
|
844 | "blockno": 2, | |||
|
845 | "lines": [ | |||
|
846 | { | |||
|
847 | "l": "--- /dev/null\tThu Jan 01 00:00:00 1970 +0000\n", | |||
|
848 | "n": 1, | |||
|
849 | "t": "-" | |||
|
850 | }, | |||
|
851 | { | |||
|
852 | "l": "+++ b/foo-new\tThu Jan 01 00:00:00 1970 +0000\n", | |||
|
853 | "n": 2, | |||
|
854 | "t": "+" | |||
|
855 | }, | |||
|
856 | { | |||
|
857 | "l": "@@ -0,0 +1,1 @@\n", | |||
|
858 | "n": 3, | |||
|
859 | "t": "@" | |||
|
860 | }, | |||
|
861 | { | |||
|
862 | "l": "+bar\n", | |||
|
863 | "n": 4, | |||
|
864 | "t": "+" | |||
|
865 | } | |||
|
866 | ] | |||
|
867 | } | |||
|
868 | ], | |||
816 |
"files": |
|
869 | "files": [ | |
817 | { |
|
870 | { | |
818 | "file": "foo", |
|
871 | "file": "foo", | |
819 |
"status": |
|
872 | "status": "removed" | |
820 | }, |
|
873 | }, | |
821 | { |
|
874 | { | |
822 | "file": "foo-new", |
|
875 | "file": "foo-new", | |
823 | "status": "added" |
|
876 | "status": "added" | |
824 | } |
|
877 | } | |
825 | ], |
|
878 | ], | |
826 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
879 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
827 | "parents": [ |
|
880 | "parents": [ | |
828 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
881 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
829 | ], |
|
882 | ], | |
830 | "phase": "public", |
|
883 | "phase": "public", | |
831 | "tags": [ |
|
884 | "tags": [ | |
832 | "tag1" |
|
885 | "tag1" | |
833 | ], |
|
886 | ], | |
834 | "user": "test" |
|
887 | "user": "test" | |
835 | } |
|
888 | } | |
836 |
|
889 | |||
837 | changeset/{revision} shows bookmarks |
|
890 | changeset/{revision} shows bookmarks | |
838 |
|
891 | |||
839 | $ request json-rev/8d7c456572ac |
|
892 | $ request json-rev/8d7c456572ac | |
840 | 200 Script output follows |
|
893 | 200 Script output follows | |
841 |
|
894 | |||
842 | { |
|
895 | { | |
843 | "bookmarks": [ |
|
896 | "bookmarks": [ | |
844 | "bookmark1" |
|
897 | "bookmark1" | |
845 | ], |
|
898 | ], | |
846 | "branch": "default", |
|
899 | "branch": "default", | |
847 | "date": [ |
|
900 | "date": [ | |
848 | 0.0, |
|
901 | 0.0, | |
849 | 0 |
|
902 | 0 | |
850 | ], |
|
903 | ], | |
851 | "desc": "modify da/foo", |
|
904 | "desc": "modify da/foo", | |
|
905 | "diff": [ | |||
|
906 | { | |||
|
907 | "blockno": 1, | |||
|
908 | "lines": [ | |||
|
909 | { | |||
|
910 | "l": "--- a/da/foo\tThu Jan 01 00:00:00 1970 +0000\n", | |||
|
911 | "n": 1, | |||
|
912 | "t": "-" | |||
|
913 | }, | |||
|
914 | { | |||
|
915 | "l": "+++ b/da/foo\tThu Jan 01 00:00:00 1970 +0000\n", | |||
|
916 | "n": 2, | |||
|
917 | "t": "+" | |||
|
918 | }, | |||
|
919 | { | |||
|
920 | "l": "@@ -1,1 +1,1 @@\n", | |||
|
921 | "n": 3, | |||
|
922 | "t": "@" | |||
|
923 | }, | |||
|
924 | { | |||
|
925 | "l": "-foo\n", | |||
|
926 | "n": 4, | |||
|
927 | "t": "-" | |||
|
928 | }, | |||
|
929 | { | |||
|
930 | "l": "+bar\n", | |||
|
931 | "n": 5, | |||
|
932 | "t": "+" | |||
|
933 | } | |||
|
934 | ] | |||
|
935 | } | |||
|
936 | ], | |||
852 |
"files": |
|
937 | "files": [ | |
853 | { |
|
938 | { | |
854 | "file": "da/foo", |
|
939 | "file": "da/foo", | |
855 |
"status": |
|
940 | "status": "modified" | |
856 | } |
|
941 | } | |
857 | ], |
|
942 | ], | |
858 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", |
|
943 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", | |
859 | "parents": [ |
|
944 | "parents": [ | |
860 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
945 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
861 | ], |
|
946 | ], | |
862 | "phase": "public", |
|
947 | "phase": "public", | |
863 | "tags": [], |
|
948 | "tags": [], | |
864 | "user": "test" |
|
949 | "user": "test" | |
865 | } |
|
950 | } | |
866 |
|
951 | |||
867 | changeset/{revision} shows branches |
|
952 | changeset/{revision} shows branches | |
868 |
|
953 | |||
869 | $ request json-rev/6ab967a8ab34 |
|
954 | $ request json-rev/6ab967a8ab34 | |
870 | 200 Script output follows |
|
955 | 200 Script output follows | |
871 |
|
956 | |||
872 | { |
|
957 | { | |
873 | "bookmarks": [], |
|
958 | "bookmarks": [], | |
874 | "branch": "test-branch", |
|
959 | "branch": "test-branch", | |
875 | "date": [ |
|
960 | "date": [ | |
876 | 0.0, |
|
961 | 0.0, | |
877 | 0 |
|
962 | 0 | |
878 | ], |
|
963 | ], | |
879 | "desc": "create test branch", |
|
964 | "desc": "create test branch", | |
|
965 | "diff": [ | |||
|
966 | { | |||
|
967 | "blockno": 1, | |||
|
968 | "lines": [ | |||
|
969 | { | |||
|
970 | "l": "--- a/foo\tThu Jan 01 00:00:00 1970 +0000\n", | |||
|
971 | "n": 1, | |||
|
972 | "t": "-" | |||
|
973 | }, | |||
|
974 | { | |||
|
975 | "l": "+++ b/foo\tThu Jan 01 00:00:00 1970 +0000\n", | |||
|
976 | "n": 2, | |||
|
977 | "t": "+" | |||
|
978 | }, | |||
|
979 | { | |||
|
980 | "l": "@@ -1,1 +1,1 @@\n", | |||
|
981 | "n": 3, | |||
|
982 | "t": "@" | |||
|
983 | }, | |||
|
984 | { | |||
|
985 | "l": "-foo\n", | |||
|
986 | "n": 4, | |||
|
987 | "t": "-" | |||
|
988 | }, | |||
|
989 | { | |||
|
990 | "l": "+branch\n", | |||
|
991 | "n": 5, | |||
|
992 | "t": "+" | |||
|
993 | } | |||
|
994 | ] | |||
|
995 | } | |||
|
996 | ], | |||
880 |
"files": |
|
997 | "files": [ | |
881 | { |
|
998 | { | |
882 | "file": "foo", |
|
999 | "file": "foo", | |
883 |
"status": |
|
1000 | "status": "modified" | |
884 | } |
|
1001 | } | |
885 | ], |
|
1002 | ], | |
886 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", |
|
1003 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", | |
887 | "parents": [ |
|
1004 | "parents": [ | |
888 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1005 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
889 | ], |
|
1006 | ], | |
890 | "phase": "draft", |
|
1007 | "phase": "draft", | |
891 | "tags": [], |
|
1008 | "tags": [], | |
892 | "user": "test" |
|
1009 | "user": "test" | |
893 | } |
|
1010 | } | |
894 |
|
1011 | |||
895 | manifest/{revision}/{path} shows info about a directory at a revision |
|
1012 | manifest/{revision}/{path} shows info about a directory at a revision | |
896 |
|
1013 | |||
897 | $ request json-manifest/06e557f3edf6/ |
|
1014 | $ request json-manifest/06e557f3edf6/ | |
898 | 200 Script output follows |
|
1015 | 200 Script output follows | |
899 |
|
1016 | |||
900 | { |
|
1017 | { | |
901 | "abspath": "/", |
|
1018 | "abspath": "/", | |
902 | "bookmarks": [], |
|
1019 | "bookmarks": [], | |
903 | "directories": [ |
|
1020 | "directories": [ | |
904 | { |
|
1021 | { | |
905 | "abspath": "/da", |
|
1022 | "abspath": "/da", | |
906 | "basename": "da", |
|
1023 | "basename": "da", | |
907 | "emptydirs": "" |
|
1024 | "emptydirs": "" | |
908 | } |
|
1025 | } | |
909 | ], |
|
1026 | ], | |
910 | "files": [ |
|
1027 | "files": [ | |
911 | { |
|
1028 | { | |
912 | "abspath": "foo", |
|
1029 | "abspath": "foo", | |
913 | "basename": "foo", |
|
1030 | "basename": "foo", | |
914 | "date": [ |
|
1031 | "date": [ | |
915 | 0.0, |
|
1032 | 0.0, | |
916 | 0 |
|
1033 | 0 | |
917 | ], |
|
1034 | ], | |
918 | "flags": "", |
|
1035 | "flags": "", | |
919 | "size": 4 |
|
1036 | "size": 4 | |
920 | } |
|
1037 | } | |
921 | ], |
|
1038 | ], | |
922 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
1039 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
923 | "tags": [] |
|
1040 | "tags": [] | |
924 | } |
|
1041 | } | |
925 |
|
1042 | |||
926 | tags/ shows tags info |
|
1043 | tags/ shows tags info | |
927 |
|
1044 | |||
928 | $ request json-tags |
|
1045 | $ request json-tags | |
929 | 200 Script output follows |
|
1046 | 200 Script output follows | |
930 |
|
1047 | |||
931 | { |
|
1048 | { | |
932 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
1049 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
933 | "tags": [ |
|
1050 | "tags": [ | |
934 | { |
|
1051 | { | |
935 | "date": [ |
|
1052 | "date": [ | |
936 | 0.0, |
|
1053 | 0.0, | |
937 | 0 |
|
1054 | 0 | |
938 | ], |
|
1055 | ], | |
939 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", |
|
1056 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", | |
940 | "tag": "tag2" |
|
1057 | "tag": "tag2" | |
941 | }, |
|
1058 | }, | |
942 | { |
|
1059 | { | |
943 | "date": [ |
|
1060 | "date": [ | |
944 | 0.0, |
|
1061 | 0.0, | |
945 | 0 |
|
1062 | 0 | |
946 | ], |
|
1063 | ], | |
947 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
1064 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
948 | "tag": "tag1" |
|
1065 | "tag": "tag1" | |
949 | } |
|
1066 | } | |
950 | ] |
|
1067 | ] | |
951 | } |
|
1068 | } | |
952 |
|
1069 | |||
953 | bookmarks/ shows bookmarks info |
|
1070 | bookmarks/ shows bookmarks info | |
954 |
|
1071 | |||
955 | $ request json-bookmarks |
|
1072 | $ request json-bookmarks | |
956 | 200 Script output follows |
|
1073 | 200 Script output follows | |
957 |
|
1074 | |||
958 | { |
|
1075 | { | |
959 | "bookmarks": [ |
|
1076 | "bookmarks": [ | |
960 | { |
|
1077 | { | |
961 | "bookmark": "bookmark2", |
|
1078 | "bookmark": "bookmark2", | |
962 | "date": [ |
|
1079 | "date": [ | |
963 | 0.0, |
|
1080 | 0.0, | |
964 | 0 |
|
1081 | 0 | |
965 | ], |
|
1082 | ], | |
966 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45" |
|
1083 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45" | |
967 | }, |
|
1084 | }, | |
968 | { |
|
1085 | { | |
969 | "bookmark": "bookmark1", |
|
1086 | "bookmark": "bookmark1", | |
970 | "date": [ |
|
1087 | "date": [ | |
971 | 0.0, |
|
1088 | 0.0, | |
972 | 0 |
|
1089 | 0 | |
973 | ], |
|
1090 | ], | |
974 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
1091 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
975 | } |
|
1092 | } | |
976 | ], |
|
1093 | ], | |
977 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" |
|
1094 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" | |
978 | } |
|
1095 | } | |
979 |
|
1096 | |||
980 | branches/ shows branches info |
|
1097 | branches/ shows branches info | |
981 |
|
1098 | |||
982 | $ request json-branches |
|
1099 | $ request json-branches | |
983 | 200 Script output follows |
|
1100 | 200 Script output follows | |
984 |
|
1101 | |||
985 | { |
|
1102 | { | |
986 | "branches": [ |
|
1103 | "branches": [ | |
987 | { |
|
1104 | { | |
988 | "branch": "default", |
|
1105 | "branch": "default", | |
989 | "date": [ |
|
1106 | "date": [ | |
990 | 0.0, |
|
1107 | 0.0, | |
991 | 0 |
|
1108 | 0 | |
992 | ], |
|
1109 | ], | |
993 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
1110 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
994 | "status": "open" |
|
1111 | "status": "open" | |
995 | }, |
|
1112 | }, | |
996 | { |
|
1113 | { | |
997 | "branch": "test-branch", |
|
1114 | "branch": "test-branch", | |
998 | "date": [ |
|
1115 | "date": [ | |
999 | 0.0, |
|
1116 | 0.0, | |
1000 | 0 |
|
1117 | 0 | |
1001 | ], |
|
1118 | ], | |
1002 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", |
|
1119 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", | |
1003 | "status": "inactive" |
|
1120 | "status": "inactive" | |
1004 | } |
|
1121 | } | |
1005 | ] |
|
1122 | ] | |
1006 | } |
|
1123 | } | |
1007 |
|
1124 | |||
1008 | summary/ shows a summary of repository state |
|
1125 | summary/ shows a summary of repository state | |
1009 |
|
1126 | |||
1010 | $ request json-summary |
|
1127 | $ request json-summary | |
1011 | 200 Script output follows |
|
1128 | 200 Script output follows | |
1012 |
|
1129 | |||
1013 | { |
|
1130 | { | |
1014 | "archives": [ |
|
1131 | "archives": [ | |
1015 | { |
|
1132 | { | |
1016 | "extension": ".tar.bz2", |
|
1133 | "extension": ".tar.bz2", | |
1017 | "node": "tip", |
|
1134 | "node": "tip", | |
1018 | "type": "bz2", |
|
1135 | "type": "bz2", | |
1019 | "url": "http://*:$HGPORT/archive/tip.tar.bz2" (glob) |
|
1136 | "url": "http://*:$HGPORT/archive/tip.tar.bz2" (glob) | |
1020 | } |
|
1137 | } | |
1021 | ], |
|
1138 | ], | |
1022 | "bookmarks": [ |
|
1139 | "bookmarks": [ | |
1023 | { |
|
1140 | { | |
1024 | "bookmark": "bookmark2", |
|
1141 | "bookmark": "bookmark2", | |
1025 | "date": [ |
|
1142 | "date": [ | |
1026 | 0.0, |
|
1143 | 0.0, | |
1027 | 0 |
|
1144 | 0 | |
1028 | ], |
|
1145 | ], | |
1029 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45" |
|
1146 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45" | |
1030 | }, |
|
1147 | }, | |
1031 | { |
|
1148 | { | |
1032 | "bookmark": "bookmark1", |
|
1149 | "bookmark": "bookmark1", | |
1033 | "date": [ |
|
1150 | "date": [ | |
1034 | 0.0, |
|
1151 | 0.0, | |
1035 | 0 |
|
1152 | 0 | |
1036 | ], |
|
1153 | ], | |
1037 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
1154 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
1038 | } |
|
1155 | } | |
1039 | ], |
|
1156 | ], | |
1040 | "branches": [ |
|
1157 | "branches": [ | |
1041 | { |
|
1158 | { | |
1042 | "branch": "default", |
|
1159 | "branch": "default", | |
1043 | "date": [ |
|
1160 | "date": [ | |
1044 | 0.0, |
|
1161 | 0.0, | |
1045 | 0 |
|
1162 | 0 | |
1046 | ], |
|
1163 | ], | |
1047 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
1164 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
1048 | "status": "open" |
|
1165 | "status": "open" | |
1049 | }, |
|
1166 | }, | |
1050 | { |
|
1167 | { | |
1051 | "branch": "test-branch", |
|
1168 | "branch": "test-branch", | |
1052 | "date": [ |
|
1169 | "date": [ | |
1053 | 0.0, |
|
1170 | 0.0, | |
1054 | 0 |
|
1171 | 0 | |
1055 | ], |
|
1172 | ], | |
1056 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", |
|
1173 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", | |
1057 | "status": "inactive" |
|
1174 | "status": "inactive" | |
1058 | } |
|
1175 | } | |
1059 | ], |
|
1176 | ], | |
1060 | "labels": [], |
|
1177 | "labels": [], | |
1061 | "lastchange": [ |
|
1178 | "lastchange": [ | |
1062 | 0.0, |
|
1179 | 0.0, | |
1063 | 0 |
|
1180 | 0 | |
1064 | ], |
|
1181 | ], | |
1065 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
1182 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
1066 | "shortlog": [ |
|
1183 | "shortlog": [ | |
1067 | { |
|
1184 | { | |
1068 | "bookmarks": [], |
|
1185 | "bookmarks": [], | |
1069 | "branch": "default", |
|
1186 | "branch": "default", | |
1070 | "date": [ |
|
1187 | "date": [ | |
1071 | 0.0, |
|
1188 | 0.0, | |
1072 | 0 |
|
1189 | 0 | |
1073 | ], |
|
1190 | ], | |
1074 | "desc": "merge test-branch into default", |
|
1191 | "desc": "merge test-branch into default", | |
1075 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
1192 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
1076 | "parents": [ |
|
1193 | "parents": [ | |
1077 | "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
1194 | "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
1078 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" |
|
1195 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" | |
1079 | ], |
|
1196 | ], | |
1080 | "phase": "draft", |
|
1197 | "phase": "draft", | |
1081 | "tags": [ |
|
1198 | "tags": [ | |
1082 | "tip" |
|
1199 | "tip" | |
1083 | ], |
|
1200 | ], | |
1084 | "user": "test" |
|
1201 | "user": "test" | |
1085 | }, |
|
1202 | }, | |
1086 | { |
|
1203 | { | |
1087 | "bookmarks": [], |
|
1204 | "bookmarks": [], | |
1088 | "branch": "test-branch", |
|
1205 | "branch": "test-branch", | |
1089 | "date": [ |
|
1206 | "date": [ | |
1090 | 0.0, |
|
1207 | 0.0, | |
1091 | 0 |
|
1208 | 0 | |
1092 | ], |
|
1209 | ], | |
1093 | "desc": "another commit in test-branch", |
|
1210 | "desc": "another commit in test-branch", | |
1094 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", |
|
1211 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", | |
1095 | "parents": [ |
|
1212 | "parents": [ | |
1096 | "6ab967a8ab3489227a83f80e920faa039a71819f" |
|
1213 | "6ab967a8ab3489227a83f80e920faa039a71819f" | |
1097 | ], |
|
1214 | ], | |
1098 | "phase": "draft", |
|
1215 | "phase": "draft", | |
1099 | "tags": [], |
|
1216 | "tags": [], | |
1100 | "user": "test" |
|
1217 | "user": "test" | |
1101 | }, |
|
1218 | }, | |
1102 | { |
|
1219 | { | |
1103 | "bookmarks": [], |
|
1220 | "bookmarks": [], | |
1104 | "branch": "test-branch", |
|
1221 | "branch": "test-branch", | |
1105 | "date": [ |
|
1222 | "date": [ | |
1106 | 0.0, |
|
1223 | 0.0, | |
1107 | 0 |
|
1224 | 0 | |
1108 | ], |
|
1225 | ], | |
1109 | "desc": "create test branch", |
|
1226 | "desc": "create test branch", | |
1110 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", |
|
1227 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", | |
1111 | "parents": [ |
|
1228 | "parents": [ | |
1112 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1229 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1113 | ], |
|
1230 | ], | |
1114 | "phase": "draft", |
|
1231 | "phase": "draft", | |
1115 | "tags": [], |
|
1232 | "tags": [], | |
1116 | "user": "test" |
|
1233 | "user": "test" | |
1117 | }, |
|
1234 | }, | |
1118 | { |
|
1235 | { | |
1119 | "bookmarks": [ |
|
1236 | "bookmarks": [ | |
1120 | "bookmark2" |
|
1237 | "bookmark2" | |
1121 | ], |
|
1238 | ], | |
1122 | "branch": "default", |
|
1239 | "branch": "default", | |
1123 | "date": [ |
|
1240 | "date": [ | |
1124 | 0.0, |
|
1241 | 0.0, | |
1125 | 0 |
|
1242 | 0 | |
1126 | ], |
|
1243 | ], | |
1127 | "desc": "create tag2", |
|
1244 | "desc": "create tag2", | |
1128 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
1245 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
1129 | "parents": [ |
|
1246 | "parents": [ | |
1130 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" |
|
1247 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" | |
1131 | ], |
|
1248 | ], | |
1132 | "phase": "draft", |
|
1249 | "phase": "draft", | |
1133 | "tags": [], |
|
1250 | "tags": [], | |
1134 | "user": "test" |
|
1251 | "user": "test" | |
1135 | }, |
|
1252 | }, | |
1136 | { |
|
1253 | { | |
1137 | "bookmarks": [], |
|
1254 | "bookmarks": [], | |
1138 | "branch": "default", |
|
1255 | "branch": "default", | |
1139 | "date": [ |
|
1256 | "date": [ | |
1140 | 0.0, |
|
1257 | 0.0, | |
1141 | 0 |
|
1258 | 0 | |
1142 | ], |
|
1259 | ], | |
1143 | "desc": "another commit to da/foo", |
|
1260 | "desc": "another commit to da/foo", | |
1144 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", |
|
1261 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", | |
1145 | "parents": [ |
|
1262 | "parents": [ | |
1146 | "93a8ce14f89156426b7fa981af8042da53f03aa0" |
|
1263 | "93a8ce14f89156426b7fa981af8042da53f03aa0" | |
1147 | ], |
|
1264 | ], | |
1148 | "phase": "draft", |
|
1265 | "phase": "draft", | |
1149 | "tags": [ |
|
1266 | "tags": [ | |
1150 | "tag2" |
|
1267 | "tag2" | |
1151 | ], |
|
1268 | ], | |
1152 | "user": "test" |
|
1269 | "user": "test" | |
1153 | }, |
|
1270 | }, | |
1154 | { |
|
1271 | { | |
1155 | "bookmarks": [], |
|
1272 | "bookmarks": [], | |
1156 | "branch": "default", |
|
1273 | "branch": "default", | |
1157 | "date": [ |
|
1274 | "date": [ | |
1158 | 0.0, |
|
1275 | 0.0, | |
1159 | 0 |
|
1276 | 0 | |
1160 | ], |
|
1277 | ], | |
1161 | "desc": "create tag", |
|
1278 | "desc": "create tag", | |
1162 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", |
|
1279 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", | |
1163 | "parents": [ |
|
1280 | "parents": [ | |
1164 | "78896eb0e102174ce9278438a95e12543e4367a7" |
|
1281 | "78896eb0e102174ce9278438a95e12543e4367a7" | |
1165 | ], |
|
1282 | ], | |
1166 | "phase": "public", |
|
1283 | "phase": "public", | |
1167 | "tags": [], |
|
1284 | "tags": [], | |
1168 | "user": "test" |
|
1285 | "user": "test" | |
1169 | }, |
|
1286 | }, | |
1170 | { |
|
1287 | { | |
1171 | "bookmarks": [], |
|
1288 | "bookmarks": [], | |
1172 | "branch": "default", |
|
1289 | "branch": "default", | |
1173 | "date": [ |
|
1290 | "date": [ | |
1174 | 0.0, |
|
1291 | 0.0, | |
1175 | 0 |
|
1292 | 0 | |
1176 | ], |
|
1293 | ], | |
1177 | "desc": "move foo", |
|
1294 | "desc": "move foo", | |
1178 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
1295 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
1179 | "parents": [ |
|
1296 | "parents": [ | |
1180 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
1297 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
1181 | ], |
|
1298 | ], | |
1182 | "phase": "public", |
|
1299 | "phase": "public", | |
1183 | "tags": [ |
|
1300 | "tags": [ | |
1184 | "tag1" |
|
1301 | "tag1" | |
1185 | ], |
|
1302 | ], | |
1186 | "user": "test" |
|
1303 | "user": "test" | |
1187 | }, |
|
1304 | }, | |
1188 | { |
|
1305 | { | |
1189 | "bookmarks": [ |
|
1306 | "bookmarks": [ | |
1190 | "bookmark1" |
|
1307 | "bookmark1" | |
1191 | ], |
|
1308 | ], | |
1192 | "branch": "default", |
|
1309 | "branch": "default", | |
1193 | "date": [ |
|
1310 | "date": [ | |
1194 | 0.0, |
|
1311 | 0.0, | |
1195 | 0 |
|
1312 | 0 | |
1196 | ], |
|
1313 | ], | |
1197 | "desc": "modify da/foo", |
|
1314 | "desc": "modify da/foo", | |
1198 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", |
|
1315 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", | |
1199 | "parents": [ |
|
1316 | "parents": [ | |
1200 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
1317 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
1201 | ], |
|
1318 | ], | |
1202 | "phase": "public", |
|
1319 | "phase": "public", | |
1203 | "tags": [], |
|
1320 | "tags": [], | |
1204 | "user": "test" |
|
1321 | "user": "test" | |
1205 | }, |
|
1322 | }, | |
1206 | { |
|
1323 | { | |
1207 | "bookmarks": [], |
|
1324 | "bookmarks": [], | |
1208 | "branch": "default", |
|
1325 | "branch": "default", | |
1209 | "date": [ |
|
1326 | "date": [ | |
1210 | 0.0, |
|
1327 | 0.0, | |
1211 | 0 |
|
1328 | 0 | |
1212 | ], |
|
1329 | ], | |
1213 | "desc": "modify foo", |
|
1330 | "desc": "modify foo", | |
1214 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
1331 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
1215 | "parents": [ |
|
1332 | "parents": [ | |
1216 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1333 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1217 | ], |
|
1334 | ], | |
1218 | "phase": "public", |
|
1335 | "phase": "public", | |
1219 | "tags": [], |
|
1336 | "tags": [], | |
1220 | "user": "test" |
|
1337 | "user": "test" | |
1221 | }, |
|
1338 | }, | |
1222 | { |
|
1339 | { | |
1223 | "bookmarks": [], |
|
1340 | "bookmarks": [], | |
1224 | "branch": "default", |
|
1341 | "branch": "default", | |
1225 | "date": [ |
|
1342 | "date": [ | |
1226 | 0.0, |
|
1343 | 0.0, | |
1227 | 0 |
|
1344 | 0 | |
1228 | ], |
|
1345 | ], | |
1229 | "desc": "initial", |
|
1346 | "desc": "initial", | |
1230 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
1347 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
1231 | "parents": [], |
|
1348 | "parents": [], | |
1232 | "phase": "public", |
|
1349 | "phase": "public", | |
1233 | "tags": [], |
|
1350 | "tags": [], | |
1234 | "user": "test" |
|
1351 | "user": "test" | |
1235 | } |
|
1352 | } | |
1236 | ], |
|
1353 | ], | |
1237 | "tags": [ |
|
1354 | "tags": [ | |
1238 | { |
|
1355 | { | |
1239 | "date": [ |
|
1356 | "date": [ | |
1240 | 0.0, |
|
1357 | 0.0, | |
1241 | 0 |
|
1358 | 0 | |
1242 | ], |
|
1359 | ], | |
1243 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", |
|
1360 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", | |
1244 | "tag": "tag2" |
|
1361 | "tag": "tag2" | |
1245 | }, |
|
1362 | }, | |
1246 | { |
|
1363 | { | |
1247 | "date": [ |
|
1364 | "date": [ | |
1248 | 0.0, |
|
1365 | 0.0, | |
1249 | 0 |
|
1366 | 0 | |
1250 | ], |
|
1367 | ], | |
1251 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
1368 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
1252 | "tag": "tag1" |
|
1369 | "tag": "tag1" | |
1253 | } |
|
1370 | } | |
1254 | ] |
|
1371 | ] | |
1255 | } |
|
1372 | } | |
1256 |
|
1373 | |||
1257 | $ request json-changelog?rev=create |
|
1374 | $ request json-changelog?rev=create | |
1258 | 200 Script output follows |
|
1375 | 200 Script output follows | |
1259 |
|
1376 | |||
1260 | { |
|
1377 | { | |
1261 | "entries": [ |
|
1378 | "entries": [ | |
1262 | { |
|
1379 | { | |
1263 | "bookmarks": [], |
|
1380 | "bookmarks": [], | |
1264 | "branch": "test-branch", |
|
1381 | "branch": "test-branch", | |
1265 | "date": [ |
|
1382 | "date": [ | |
1266 | 0.0, |
|
1383 | 0.0, | |
1267 | 0 |
|
1384 | 0 | |
1268 | ], |
|
1385 | ], | |
1269 | "desc": "create test branch", |
|
1386 | "desc": "create test branch", | |
1270 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", |
|
1387 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", | |
1271 | "parents": [ |
|
1388 | "parents": [ | |
1272 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1389 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1273 | ], |
|
1390 | ], | |
1274 | "phase": "draft", |
|
1391 | "phase": "draft", | |
1275 | "tags": [], |
|
1392 | "tags": [], | |
1276 | "user": "test" |
|
1393 | "user": "test" | |
1277 | }, |
|
1394 | }, | |
1278 | { |
|
1395 | { | |
1279 | "bookmarks": [ |
|
1396 | "bookmarks": [ | |
1280 | "bookmark2" |
|
1397 | "bookmark2" | |
1281 | ], |
|
1398 | ], | |
1282 | "branch": "default", |
|
1399 | "branch": "default", | |
1283 | "date": [ |
|
1400 | "date": [ | |
1284 | 0.0, |
|
1401 | 0.0, | |
1285 | 0 |
|
1402 | 0 | |
1286 | ], |
|
1403 | ], | |
1287 | "desc": "create tag2", |
|
1404 | "desc": "create tag2", | |
1288 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
1405 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
1289 | "parents": [ |
|
1406 | "parents": [ | |
1290 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" |
|
1407 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" | |
1291 | ], |
|
1408 | ], | |
1292 | "phase": "draft", |
|
1409 | "phase": "draft", | |
1293 | "tags": [], |
|
1410 | "tags": [], | |
1294 | "user": "test" |
|
1411 | "user": "test" | |
1295 | }, |
|
1412 | }, | |
1296 | { |
|
1413 | { | |
1297 | "bookmarks": [], |
|
1414 | "bookmarks": [], | |
1298 | "branch": "default", |
|
1415 | "branch": "default", | |
1299 | "date": [ |
|
1416 | "date": [ | |
1300 | 0.0, |
|
1417 | 0.0, | |
1301 | 0 |
|
1418 | 0 | |
1302 | ], |
|
1419 | ], | |
1303 | "desc": "create tag", |
|
1420 | "desc": "create tag", | |
1304 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", |
|
1421 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", | |
1305 | "parents": [ |
|
1422 | "parents": [ | |
1306 | "78896eb0e102174ce9278438a95e12543e4367a7" |
|
1423 | "78896eb0e102174ce9278438a95e12543e4367a7" | |
1307 | ], |
|
1424 | ], | |
1308 | "phase": "public", |
|
1425 | "phase": "public", | |
1309 | "tags": [], |
|
1426 | "tags": [], | |
1310 | "user": "test" |
|
1427 | "user": "test" | |
1311 | } |
|
1428 | } | |
1312 | ], |
|
1429 | ], | |
1313 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
1430 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
1314 | "query": "create" |
|
1431 | "query": "create" | |
1315 | } |
|
1432 | } | |
1316 |
|
1433 | |||
1317 | filediff/{revision}/{path} shows changes to a file in a revision |
|
1434 | filediff/{revision}/{path} shows changes to a file in a revision | |
1318 |
|
1435 | |||
1319 | $ request json-diff/f8bbb9024b10/foo |
|
1436 | $ request json-diff/f8bbb9024b10/foo | |
1320 | 200 Script output follows |
|
1437 | 200 Script output follows | |
1321 |
|
1438 | |||
1322 | { |
|
1439 | { | |
1323 | "author": "test", |
|
1440 | "author": "test", | |
1324 | "children": [], |
|
1441 | "children": [], | |
1325 | "date": [ |
|
1442 | "date": [ | |
1326 | 0.0, |
|
1443 | 0.0, | |
1327 | 0 |
|
1444 | 0 | |
1328 | ], |
|
1445 | ], | |
1329 | "desc": "modify foo", |
|
1446 | "desc": "modify foo", | |
1330 | "diff": [ |
|
1447 | "diff": [ | |
1331 | { |
|
1448 | { | |
1332 | "blockno": 1, |
|
1449 | "blockno": 1, | |
1333 | "lines": [ |
|
1450 | "lines": [ | |
1334 | { |
|
1451 | { | |
1335 | "l": "--- a/foo\tThu Jan 01 00:00:00 1970 +0000\n", |
|
1452 | "l": "--- a/foo\tThu Jan 01 00:00:00 1970 +0000\n", | |
1336 | "n": 1, |
|
1453 | "n": 1, | |
1337 | "t": "-" |
|
1454 | "t": "-" | |
1338 | }, |
|
1455 | }, | |
1339 | { |
|
1456 | { | |
1340 | "l": "+++ b/foo\tThu Jan 01 00:00:00 1970 +0000\n", |
|
1457 | "l": "+++ b/foo\tThu Jan 01 00:00:00 1970 +0000\n", | |
1341 | "n": 2, |
|
1458 | "n": 2, | |
1342 | "t": "+" |
|
1459 | "t": "+" | |
1343 | }, |
|
1460 | }, | |
1344 | { |
|
1461 | { | |
1345 | "l": "@@ -1,1 +1,1 @@\n", |
|
1462 | "l": "@@ -1,1 +1,1 @@\n", | |
1346 | "n": 3, |
|
1463 | "n": 3, | |
1347 | "t": "@" |
|
1464 | "t": "@" | |
1348 | }, |
|
1465 | }, | |
1349 | { |
|
1466 | { | |
1350 | "l": "-foo\n", |
|
1467 | "l": "-foo\n", | |
1351 | "n": 4, |
|
1468 | "n": 4, | |
1352 | "t": "-" |
|
1469 | "t": "-" | |
1353 | }, |
|
1470 | }, | |
1354 | { |
|
1471 | { | |
1355 | "l": "+bar\n", |
|
1472 | "l": "+bar\n", | |
1356 | "n": 5, |
|
1473 | "n": 5, | |
1357 | "t": "+" |
|
1474 | "t": "+" | |
1358 | } |
|
1475 | } | |
1359 | ] |
|
1476 | ] | |
1360 | } |
|
1477 | } | |
1361 | ], |
|
1478 | ], | |
1362 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
1479 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
1363 | "parents": [ |
|
1480 | "parents": [ | |
1364 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1481 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1365 | ], |
|
1482 | ], | |
1366 | "path": "foo" |
|
1483 | "path": "foo" | |
1367 | } |
|
1484 | } | |
1368 |
|
1485 | |||
1369 | comparison/{revision}/{path} shows information about before and after for a file |
|
1486 | comparison/{revision}/{path} shows information about before and after for a file | |
1370 |
|
1487 | |||
1371 | $ request json-comparison/f8bbb9024b10/foo |
|
1488 | $ request json-comparison/f8bbb9024b10/foo | |
1372 | 200 Script output follows |
|
1489 | 200 Script output follows | |
1373 |
|
1490 | |||
1374 | { |
|
1491 | { | |
1375 | "author": "test", |
|
1492 | "author": "test", | |
1376 | "children": [], |
|
1493 | "children": [], | |
1377 | "comparison": [ |
|
1494 | "comparison": [ | |
1378 | { |
|
1495 | { | |
1379 | "lines": [ |
|
1496 | "lines": [ | |
1380 | { |
|
1497 | { | |
1381 | "ll": "foo", |
|
1498 | "ll": "foo", | |
1382 | "ln": 1, |
|
1499 | "ln": 1, | |
1383 | "rl": "bar", |
|
1500 | "rl": "bar", | |
1384 | "rn": 1, |
|
1501 | "rn": 1, | |
1385 | "t": "replace" |
|
1502 | "t": "replace" | |
1386 | } |
|
1503 | } | |
1387 | ] |
|
1504 | ] | |
1388 | } |
|
1505 | } | |
1389 | ], |
|
1506 | ], | |
1390 | "date": [ |
|
1507 | "date": [ | |
1391 | 0.0, |
|
1508 | 0.0, | |
1392 | 0 |
|
1509 | 0 | |
1393 | ], |
|
1510 | ], | |
1394 | "desc": "modify foo", |
|
1511 | "desc": "modify foo", | |
1395 | "leftnode": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
1512 | "leftnode": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
1396 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
1513 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
1397 | "parents": [ |
|
1514 | "parents": [ | |
1398 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1515 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1399 | ], |
|
1516 | ], | |
1400 | "path": "foo", |
|
1517 | "path": "foo", | |
1401 | "rightnode": "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
1518 | "rightnode": "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
1402 | } |
|
1519 | } | |
1403 |
|
1520 | |||
1404 | annotate/{revision}/{path} shows annotations for each line |
|
1521 | annotate/{revision}/{path} shows annotations for each line | |
1405 |
|
1522 | |||
1406 | $ request json-annotate/f8bbb9024b10/foo |
|
1523 | $ request json-annotate/f8bbb9024b10/foo | |
1407 | 200 Script output follows |
|
1524 | 200 Script output follows | |
1408 |
|
1525 | |||
1409 | { |
|
1526 | { | |
1410 | "abspath": "foo", |
|
1527 | "abspath": "foo", | |
1411 | "annotate": [ |
|
1528 | "annotate": [ | |
1412 | { |
|
1529 | { | |
1413 | "abspath": "foo", |
|
1530 | "abspath": "foo", | |
1414 | "author": "test", |
|
1531 | "author": "test", | |
1415 | "desc": "modify foo", |
|
1532 | "desc": "modify foo", | |
1416 | "line": "bar\n", |
|
1533 | "line": "bar\n", | |
1417 | "lineno": 1, |
|
1534 | "lineno": 1, | |
1418 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
1535 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
1419 | "revdate": [ |
|
1536 | "revdate": [ | |
1420 | 0.0, |
|
1537 | 0.0, | |
1421 | 0 |
|
1538 | 0 | |
1422 | ], |
|
1539 | ], | |
1423 | "targetline": 1 |
|
1540 | "targetline": 1 | |
1424 | } |
|
1541 | } | |
1425 | ], |
|
1542 | ], | |
1426 | "author": "test", |
|
1543 | "author": "test", | |
1427 | "children": [], |
|
1544 | "children": [], | |
1428 | "date": [ |
|
1545 | "date": [ | |
1429 | 0.0, |
|
1546 | 0.0, | |
1430 | 0 |
|
1547 | 0 | |
1431 | ], |
|
1548 | ], | |
1432 | "desc": "modify foo", |
|
1549 | "desc": "modify foo", | |
1433 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
1550 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
1434 | "parents": [ |
|
1551 | "parents": [ | |
1435 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1552 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1436 | ], |
|
1553 | ], | |
1437 | "permissions": "" |
|
1554 | "permissions": "" | |
1438 | } |
|
1555 | } | |
1439 |
|
1556 | |||
1440 | filelog/{revision}/{path} shows history of a single file |
|
1557 | filelog/{revision}/{path} shows history of a single file | |
1441 |
|
1558 | |||
1442 | $ request json-filelog/f8bbb9024b10/foo |
|
1559 | $ request json-filelog/f8bbb9024b10/foo | |
1443 | 200 Script output follows |
|
1560 | 200 Script output follows | |
1444 |
|
1561 | |||
1445 | { |
|
1562 | { | |
1446 | "entries": [ |
|
1563 | "entries": [ | |
1447 | { |
|
1564 | { | |
1448 | "bookmarks": [], |
|
1565 | "bookmarks": [], | |
1449 | "branch": "default", |
|
1566 | "branch": "default", | |
1450 | "date": [ |
|
1567 | "date": [ | |
1451 | 0.0, |
|
1568 | 0.0, | |
1452 | 0 |
|
1569 | 0 | |
1453 | ], |
|
1570 | ], | |
1454 | "desc": "modify foo", |
|
1571 | "desc": "modify foo", | |
1455 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
1572 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
1456 | "parents": [ |
|
1573 | "parents": [ | |
1457 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1574 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1458 | ], |
|
1575 | ], | |
1459 | "phase": "public", |
|
1576 | "phase": "public", | |
1460 | "tags": [], |
|
1577 | "tags": [], | |
1461 | "user": "test" |
|
1578 | "user": "test" | |
1462 | }, |
|
1579 | }, | |
1463 | { |
|
1580 | { | |
1464 | "bookmarks": [], |
|
1581 | "bookmarks": [], | |
1465 | "branch": "default", |
|
1582 | "branch": "default", | |
1466 | "date": [ |
|
1583 | "date": [ | |
1467 | 0.0, |
|
1584 | 0.0, | |
1468 | 0 |
|
1585 | 0 | |
1469 | ], |
|
1586 | ], | |
1470 | "desc": "initial", |
|
1587 | "desc": "initial", | |
1471 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
1588 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
1472 | "parents": [], |
|
1589 | "parents": [], | |
1473 | "phase": "public", |
|
1590 | "phase": "public", | |
1474 | "tags": [], |
|
1591 | "tags": [], | |
1475 | "user": "test" |
|
1592 | "user": "test" | |
1476 | } |
|
1593 | } | |
1477 | ] |
|
1594 | ] | |
1478 | } |
|
1595 | } | |
1479 |
|
1596 | |||
1480 | $ request json-filelog/cc725e08502a/da/foo |
|
1597 | $ request json-filelog/cc725e08502a/da/foo | |
1481 | 200 Script output follows |
|
1598 | 200 Script output follows | |
1482 |
|
1599 | |||
1483 | { |
|
1600 | { | |
1484 | "entries": [ |
|
1601 | "entries": [ | |
1485 | { |
|
1602 | { | |
1486 | "bookmarks": [], |
|
1603 | "bookmarks": [], | |
1487 | "branch": "default", |
|
1604 | "branch": "default", | |
1488 | "date": [ |
|
1605 | "date": [ | |
1489 | 0.0, |
|
1606 | 0.0, | |
1490 | 0 |
|
1607 | 0 | |
1491 | ], |
|
1608 | ], | |
1492 | "desc": "another commit to da/foo", |
|
1609 | "desc": "another commit to da/foo", | |
1493 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", |
|
1610 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", | |
1494 | "parents": [ |
|
1611 | "parents": [ | |
1495 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
1612 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
1496 | ], |
|
1613 | ], | |
1497 | "phase": "draft", |
|
1614 | "phase": "draft", | |
1498 | "tags": [ |
|
1615 | "tags": [ | |
1499 | "tag2" |
|
1616 | "tag2" | |
1500 | ], |
|
1617 | ], | |
1501 | "user": "test" |
|
1618 | "user": "test" | |
1502 | }, |
|
1619 | }, | |
1503 | { |
|
1620 | { | |
1504 | "bookmarks": [ |
|
1621 | "bookmarks": [ | |
1505 | "bookmark1" |
|
1622 | "bookmark1" | |
1506 | ], |
|
1623 | ], | |
1507 | "branch": "default", |
|
1624 | "branch": "default", | |
1508 | "date": [ |
|
1625 | "date": [ | |
1509 | 0.0, |
|
1626 | 0.0, | |
1510 | 0 |
|
1627 | 0 | |
1511 | ], |
|
1628 | ], | |
1512 | "desc": "modify da/foo", |
|
1629 | "desc": "modify da/foo", | |
1513 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", |
|
1630 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", | |
1514 | "parents": [ |
|
1631 | "parents": [ | |
1515 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1632 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1516 | ], |
|
1633 | ], | |
1517 | "phase": "public", |
|
1634 | "phase": "public", | |
1518 | "tags": [], |
|
1635 | "tags": [], | |
1519 | "user": "test" |
|
1636 | "user": "test" | |
1520 | }, |
|
1637 | }, | |
1521 | { |
|
1638 | { | |
1522 | "bookmarks": [], |
|
1639 | "bookmarks": [], | |
1523 | "branch": "default", |
|
1640 | "branch": "default", | |
1524 | "date": [ |
|
1641 | "date": [ | |
1525 | 0.0, |
|
1642 | 0.0, | |
1526 | 0 |
|
1643 | 0 | |
1527 | ], |
|
1644 | ], | |
1528 | "desc": "initial", |
|
1645 | "desc": "initial", | |
1529 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
1646 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
1530 | "parents": [], |
|
1647 | "parents": [], | |
1531 | "phase": "public", |
|
1648 | "phase": "public", | |
1532 | "tags": [], |
|
1649 | "tags": [], | |
1533 | "user": "test" |
|
1650 | "user": "test" | |
1534 | } |
|
1651 | } | |
1535 | ] |
|
1652 | ] | |
1536 | } |
|
1653 | } | |
1537 |
|
1654 | |||
1538 | (archive/ doesn't use templating, so ignore it) |
|
1655 | (archive/ doesn't use templating, so ignore it) | |
1539 |
|
1656 | |||
1540 | (static/ doesn't use templating, so ignore it) |
|
1657 | (static/ doesn't use templating, so ignore it) | |
1541 |
|
1658 | |||
1542 | graph/ shows information that can be used to render a graph of the DAG |
|
1659 | graph/ shows information that can be used to render a graph of the DAG | |
1543 |
|
1660 | |||
1544 | $ request json-graph |
|
1661 | $ request json-graph | |
1545 | 200 Script output follows |
|
1662 | 200 Script output follows | |
1546 |
|
1663 | |||
1547 | { |
|
1664 | { | |
1548 | "changeset_count": 10, |
|
1665 | "changeset_count": 10, | |
1549 | "changesets": [ |
|
1666 | "changesets": [ | |
1550 | { |
|
1667 | { | |
1551 | "bookmarks": [], |
|
1668 | "bookmarks": [], | |
1552 | "branch": "default", |
|
1669 | "branch": "default", | |
1553 | "col": 0, |
|
1670 | "col": 0, | |
1554 | "color": 1, |
|
1671 | "color": 1, | |
1555 | "date": [ |
|
1672 | "date": [ | |
1556 | 0.0, |
|
1673 | 0.0, | |
1557 | 0 |
|
1674 | 0 | |
1558 | ], |
|
1675 | ], | |
1559 | "desc": "merge test-branch into default", |
|
1676 | "desc": "merge test-branch into default", | |
1560 | "edges": [ |
|
1677 | "edges": [ | |
1561 | { |
|
1678 | { | |
1562 | "bcolor": "", |
|
1679 | "bcolor": "", | |
1563 | "col": 0, |
|
1680 | "col": 0, | |
1564 | "color": 1, |
|
1681 | "color": 1, | |
1565 | "nextcol": 0, |
|
1682 | "nextcol": 0, | |
1566 | "width": -1 |
|
1683 | "width": -1 | |
1567 | }, |
|
1684 | }, | |
1568 | { |
|
1685 | { | |
1569 | "bcolor": "", |
|
1686 | "bcolor": "", | |
1570 | "col": 0, |
|
1687 | "col": 0, | |
1571 | "color": 1, |
|
1688 | "color": 1, | |
1572 | "nextcol": 1, |
|
1689 | "nextcol": 1, | |
1573 | "width": -1 |
|
1690 | "width": -1 | |
1574 | } |
|
1691 | } | |
1575 | ], |
|
1692 | ], | |
1576 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", |
|
1693 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7", | |
1577 | "parents": [ |
|
1694 | "parents": [ | |
1578 | "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
1695 | "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
1579 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" |
|
1696 | "ed66c30e87eb65337c05a4229efaa5f1d5285a90" | |
1580 | ], |
|
1697 | ], | |
1581 | "phase": "draft", |
|
1698 | "phase": "draft", | |
1582 | "row": 0, |
|
1699 | "row": 0, | |
1583 | "tags": [ |
|
1700 | "tags": [ | |
1584 | "tip" |
|
1701 | "tip" | |
1585 | ], |
|
1702 | ], | |
1586 | "user": "test" |
|
1703 | "user": "test" | |
1587 | }, |
|
1704 | }, | |
1588 | { |
|
1705 | { | |
1589 | "bookmarks": [], |
|
1706 | "bookmarks": [], | |
1590 | "branch": "test-branch", |
|
1707 | "branch": "test-branch", | |
1591 | "col": 1, |
|
1708 | "col": 1, | |
1592 | "color": 2, |
|
1709 | "color": 2, | |
1593 | "date": [ |
|
1710 | "date": [ | |
1594 | 0.0, |
|
1711 | 0.0, | |
1595 | 0 |
|
1712 | 0 | |
1596 | ], |
|
1713 | ], | |
1597 | "desc": "another commit in test-branch", |
|
1714 | "desc": "another commit in test-branch", | |
1598 | "edges": [ |
|
1715 | "edges": [ | |
1599 | { |
|
1716 | { | |
1600 | "bcolor": "", |
|
1717 | "bcolor": "", | |
1601 | "col": 0, |
|
1718 | "col": 0, | |
1602 | "color": 1, |
|
1719 | "color": 1, | |
1603 | "nextcol": 0, |
|
1720 | "nextcol": 0, | |
1604 | "width": -1 |
|
1721 | "width": -1 | |
1605 | }, |
|
1722 | }, | |
1606 | { |
|
1723 | { | |
1607 | "bcolor": "", |
|
1724 | "bcolor": "", | |
1608 | "col": 1, |
|
1725 | "col": 1, | |
1609 | "color": 2, |
|
1726 | "color": 2, | |
1610 | "nextcol": 1, |
|
1727 | "nextcol": 1, | |
1611 | "width": -1 |
|
1728 | "width": -1 | |
1612 | } |
|
1729 | } | |
1613 | ], |
|
1730 | ], | |
1614 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", |
|
1731 | "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90", | |
1615 | "parents": [ |
|
1732 | "parents": [ | |
1616 | "6ab967a8ab3489227a83f80e920faa039a71819f" |
|
1733 | "6ab967a8ab3489227a83f80e920faa039a71819f" | |
1617 | ], |
|
1734 | ], | |
1618 | "phase": "draft", |
|
1735 | "phase": "draft", | |
1619 | "row": 1, |
|
1736 | "row": 1, | |
1620 | "tags": [], |
|
1737 | "tags": [], | |
1621 | "user": "test" |
|
1738 | "user": "test" | |
1622 | }, |
|
1739 | }, | |
1623 | { |
|
1740 | { | |
1624 | "bookmarks": [], |
|
1741 | "bookmarks": [], | |
1625 | "branch": "test-branch", |
|
1742 | "branch": "test-branch", | |
1626 | "col": 1, |
|
1743 | "col": 1, | |
1627 | "color": 2, |
|
1744 | "color": 2, | |
1628 | "date": [ |
|
1745 | "date": [ | |
1629 | 0.0, |
|
1746 | 0.0, | |
1630 | 0 |
|
1747 | 0 | |
1631 | ], |
|
1748 | ], | |
1632 | "desc": "create test branch", |
|
1749 | "desc": "create test branch", | |
1633 | "edges": [ |
|
1750 | "edges": [ | |
1634 | { |
|
1751 | { | |
1635 | "bcolor": "", |
|
1752 | "bcolor": "", | |
1636 | "col": 0, |
|
1753 | "col": 0, | |
1637 | "color": 1, |
|
1754 | "color": 1, | |
1638 | "nextcol": 0, |
|
1755 | "nextcol": 0, | |
1639 | "width": -1 |
|
1756 | "width": -1 | |
1640 | }, |
|
1757 | }, | |
1641 | { |
|
1758 | { | |
1642 | "bcolor": "", |
|
1759 | "bcolor": "", | |
1643 | "col": 1, |
|
1760 | "col": 1, | |
1644 | "color": 2, |
|
1761 | "color": 2, | |
1645 | "nextcol": 1, |
|
1762 | "nextcol": 1, | |
1646 | "width": -1 |
|
1763 | "width": -1 | |
1647 | } |
|
1764 | } | |
1648 | ], |
|
1765 | ], | |
1649 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", |
|
1766 | "node": "6ab967a8ab3489227a83f80e920faa039a71819f", | |
1650 | "parents": [ |
|
1767 | "parents": [ | |
1651 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1768 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1652 | ], |
|
1769 | ], | |
1653 | "phase": "draft", |
|
1770 | "phase": "draft", | |
1654 | "row": 2, |
|
1771 | "row": 2, | |
1655 | "tags": [], |
|
1772 | "tags": [], | |
1656 | "user": "test" |
|
1773 | "user": "test" | |
1657 | }, |
|
1774 | }, | |
1658 | { |
|
1775 | { | |
1659 | "bookmarks": [ |
|
1776 | "bookmarks": [ | |
1660 | "bookmark2" |
|
1777 | "bookmark2" | |
1661 | ], |
|
1778 | ], | |
1662 | "branch": "default", |
|
1779 | "branch": "default", | |
1663 | "col": 0, |
|
1780 | "col": 0, | |
1664 | "color": 1, |
|
1781 | "color": 1, | |
1665 | "date": [ |
|
1782 | "date": [ | |
1666 | 0.0, |
|
1783 | 0.0, | |
1667 | 0 |
|
1784 | 0 | |
1668 | ], |
|
1785 | ], | |
1669 | "desc": "create tag2", |
|
1786 | "desc": "create tag2", | |
1670 | "edges": [ |
|
1787 | "edges": [ | |
1671 | { |
|
1788 | { | |
1672 | "bcolor": "", |
|
1789 | "bcolor": "", | |
1673 | "col": 0, |
|
1790 | "col": 0, | |
1674 | "color": 1, |
|
1791 | "color": 1, | |
1675 | "nextcol": 0, |
|
1792 | "nextcol": 0, | |
1676 | "width": -1 |
|
1793 | "width": -1 | |
1677 | }, |
|
1794 | }, | |
1678 | { |
|
1795 | { | |
1679 | "bcolor": "", |
|
1796 | "bcolor": "", | |
1680 | "col": 1, |
|
1797 | "col": 1, | |
1681 | "color": 2, |
|
1798 | "color": 2, | |
1682 | "nextcol": 1, |
|
1799 | "nextcol": 1, | |
1683 | "width": -1 |
|
1800 | "width": -1 | |
1684 | } |
|
1801 | } | |
1685 | ], |
|
1802 | ], | |
1686 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", |
|
1803 | "node": "ceed296fe500c3fac9541e31dad860cb49c89e45", | |
1687 | "parents": [ |
|
1804 | "parents": [ | |
1688 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" |
|
1805 | "f2890a05fea49bfaf9fb27ed5490894eba32da78" | |
1689 | ], |
|
1806 | ], | |
1690 | "phase": "draft", |
|
1807 | "phase": "draft", | |
1691 | "row": 3, |
|
1808 | "row": 3, | |
1692 | "tags": [], |
|
1809 | "tags": [], | |
1693 | "user": "test" |
|
1810 | "user": "test" | |
1694 | }, |
|
1811 | }, | |
1695 | { |
|
1812 | { | |
1696 | "bookmarks": [], |
|
1813 | "bookmarks": [], | |
1697 | "branch": "default", |
|
1814 | "branch": "default", | |
1698 | "col": 0, |
|
1815 | "col": 0, | |
1699 | "color": 1, |
|
1816 | "color": 1, | |
1700 | "date": [ |
|
1817 | "date": [ | |
1701 | 0.0, |
|
1818 | 0.0, | |
1702 | 0 |
|
1819 | 0 | |
1703 | ], |
|
1820 | ], | |
1704 | "desc": "another commit to da/foo", |
|
1821 | "desc": "another commit to da/foo", | |
1705 | "edges": [ |
|
1822 | "edges": [ | |
1706 | { |
|
1823 | { | |
1707 | "bcolor": "", |
|
1824 | "bcolor": "", | |
1708 | "col": 0, |
|
1825 | "col": 0, | |
1709 | "color": 1, |
|
1826 | "color": 1, | |
1710 | "nextcol": 0, |
|
1827 | "nextcol": 0, | |
1711 | "width": -1 |
|
1828 | "width": -1 | |
1712 | }, |
|
1829 | }, | |
1713 | { |
|
1830 | { | |
1714 | "bcolor": "", |
|
1831 | "bcolor": "", | |
1715 | "col": 1, |
|
1832 | "col": 1, | |
1716 | "color": 2, |
|
1833 | "color": 2, | |
1717 | "nextcol": 1, |
|
1834 | "nextcol": 1, | |
1718 | "width": -1 |
|
1835 | "width": -1 | |
1719 | } |
|
1836 | } | |
1720 | ], |
|
1837 | ], | |
1721 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", |
|
1838 | "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78", | |
1722 | "parents": [ |
|
1839 | "parents": [ | |
1723 | "93a8ce14f89156426b7fa981af8042da53f03aa0" |
|
1840 | "93a8ce14f89156426b7fa981af8042da53f03aa0" | |
1724 | ], |
|
1841 | ], | |
1725 | "phase": "draft", |
|
1842 | "phase": "draft", | |
1726 | "row": 4, |
|
1843 | "row": 4, | |
1727 | "tags": [ |
|
1844 | "tags": [ | |
1728 | "tag2" |
|
1845 | "tag2" | |
1729 | ], |
|
1846 | ], | |
1730 | "user": "test" |
|
1847 | "user": "test" | |
1731 | }, |
|
1848 | }, | |
1732 | { |
|
1849 | { | |
1733 | "bookmarks": [], |
|
1850 | "bookmarks": [], | |
1734 | "branch": "default", |
|
1851 | "branch": "default", | |
1735 | "col": 0, |
|
1852 | "col": 0, | |
1736 | "color": 1, |
|
1853 | "color": 1, | |
1737 | "date": [ |
|
1854 | "date": [ | |
1738 | 0.0, |
|
1855 | 0.0, | |
1739 | 0 |
|
1856 | 0 | |
1740 | ], |
|
1857 | ], | |
1741 | "desc": "create tag", |
|
1858 | "desc": "create tag", | |
1742 | "edges": [ |
|
1859 | "edges": [ | |
1743 | { |
|
1860 | { | |
1744 | "bcolor": "", |
|
1861 | "bcolor": "", | |
1745 | "col": 0, |
|
1862 | "col": 0, | |
1746 | "color": 1, |
|
1863 | "color": 1, | |
1747 | "nextcol": 0, |
|
1864 | "nextcol": 0, | |
1748 | "width": -1 |
|
1865 | "width": -1 | |
1749 | }, |
|
1866 | }, | |
1750 | { |
|
1867 | { | |
1751 | "bcolor": "", |
|
1868 | "bcolor": "", | |
1752 | "col": 1, |
|
1869 | "col": 1, | |
1753 | "color": 2, |
|
1870 | "color": 2, | |
1754 | "nextcol": 1, |
|
1871 | "nextcol": 1, | |
1755 | "width": -1 |
|
1872 | "width": -1 | |
1756 | } |
|
1873 | } | |
1757 | ], |
|
1874 | ], | |
1758 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", |
|
1875 | "node": "93a8ce14f89156426b7fa981af8042da53f03aa0", | |
1759 | "parents": [ |
|
1876 | "parents": [ | |
1760 | "78896eb0e102174ce9278438a95e12543e4367a7" |
|
1877 | "78896eb0e102174ce9278438a95e12543e4367a7" | |
1761 | ], |
|
1878 | ], | |
1762 | "phase": "public", |
|
1879 | "phase": "public", | |
1763 | "row": 5, |
|
1880 | "row": 5, | |
1764 | "tags": [], |
|
1881 | "tags": [], | |
1765 | "user": "test" |
|
1882 | "user": "test" | |
1766 | }, |
|
1883 | }, | |
1767 | { |
|
1884 | { | |
1768 | "bookmarks": [], |
|
1885 | "bookmarks": [], | |
1769 | "branch": "default", |
|
1886 | "branch": "default", | |
1770 | "col": 0, |
|
1887 | "col": 0, | |
1771 | "color": 1, |
|
1888 | "color": 1, | |
1772 | "date": [ |
|
1889 | "date": [ | |
1773 | 0.0, |
|
1890 | 0.0, | |
1774 | 0 |
|
1891 | 0 | |
1775 | ], |
|
1892 | ], | |
1776 | "desc": "move foo", |
|
1893 | "desc": "move foo", | |
1777 | "edges": [ |
|
1894 | "edges": [ | |
1778 | { |
|
1895 | { | |
1779 | "bcolor": "", |
|
1896 | "bcolor": "", | |
1780 | "col": 0, |
|
1897 | "col": 0, | |
1781 | "color": 1, |
|
1898 | "color": 1, | |
1782 | "nextcol": 0, |
|
1899 | "nextcol": 0, | |
1783 | "width": -1 |
|
1900 | "width": -1 | |
1784 | }, |
|
1901 | }, | |
1785 | { |
|
1902 | { | |
1786 | "bcolor": "", |
|
1903 | "bcolor": "", | |
1787 | "col": 1, |
|
1904 | "col": 1, | |
1788 | "color": 2, |
|
1905 | "color": 2, | |
1789 | "nextcol": 1, |
|
1906 | "nextcol": 1, | |
1790 | "width": -1 |
|
1907 | "width": -1 | |
1791 | } |
|
1908 | } | |
1792 | ], |
|
1909 | ], | |
1793 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", |
|
1910 | "node": "78896eb0e102174ce9278438a95e12543e4367a7", | |
1794 | "parents": [ |
|
1911 | "parents": [ | |
1795 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
|
1912 | "8d7c456572acf3557e8ed8a07286b10c408bcec5" | |
1796 | ], |
|
1913 | ], | |
1797 | "phase": "public", |
|
1914 | "phase": "public", | |
1798 | "row": 6, |
|
1915 | "row": 6, | |
1799 | "tags": [ |
|
1916 | "tags": [ | |
1800 | "tag1" |
|
1917 | "tag1" | |
1801 | ], |
|
1918 | ], | |
1802 | "user": "test" |
|
1919 | "user": "test" | |
1803 | }, |
|
1920 | }, | |
1804 | { |
|
1921 | { | |
1805 | "bookmarks": [ |
|
1922 | "bookmarks": [ | |
1806 | "bookmark1" |
|
1923 | "bookmark1" | |
1807 | ], |
|
1924 | ], | |
1808 | "branch": "default", |
|
1925 | "branch": "default", | |
1809 | "col": 0, |
|
1926 | "col": 0, | |
1810 | "color": 1, |
|
1927 | "color": 1, | |
1811 | "date": [ |
|
1928 | "date": [ | |
1812 | 0.0, |
|
1929 | 0.0, | |
1813 | 0 |
|
1930 | 0 | |
1814 | ], |
|
1931 | ], | |
1815 | "desc": "modify da/foo", |
|
1932 | "desc": "modify da/foo", | |
1816 | "edges": [ |
|
1933 | "edges": [ | |
1817 | { |
|
1934 | { | |
1818 | "bcolor": "", |
|
1935 | "bcolor": "", | |
1819 | "col": 0, |
|
1936 | "col": 0, | |
1820 | "color": 1, |
|
1937 | "color": 1, | |
1821 | "nextcol": 0, |
|
1938 | "nextcol": 0, | |
1822 | "width": -1 |
|
1939 | "width": -1 | |
1823 | }, |
|
1940 | }, | |
1824 | { |
|
1941 | { | |
1825 | "bcolor": "", |
|
1942 | "bcolor": "", | |
1826 | "col": 1, |
|
1943 | "col": 1, | |
1827 | "color": 2, |
|
1944 | "color": 2, | |
1828 | "nextcol": 1, |
|
1945 | "nextcol": 1, | |
1829 | "width": -1 |
|
1946 | "width": -1 | |
1830 | } |
|
1947 | } | |
1831 | ], |
|
1948 | ], | |
1832 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", |
|
1949 | "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5", | |
1833 | "parents": [ |
|
1950 | "parents": [ | |
1834 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" |
|
1951 | "f8bbb9024b10f93cdbb8d940337398291d40dea8" | |
1835 | ], |
|
1952 | ], | |
1836 | "phase": "public", |
|
1953 | "phase": "public", | |
1837 | "row": 7, |
|
1954 | "row": 7, | |
1838 | "tags": [], |
|
1955 | "tags": [], | |
1839 | "user": "test" |
|
1956 | "user": "test" | |
1840 | }, |
|
1957 | }, | |
1841 | { |
|
1958 | { | |
1842 | "bookmarks": [], |
|
1959 | "bookmarks": [], | |
1843 | "branch": "default", |
|
1960 | "branch": "default", | |
1844 | "col": 0, |
|
1961 | "col": 0, | |
1845 | "color": 1, |
|
1962 | "color": 1, | |
1846 | "date": [ |
|
1963 | "date": [ | |
1847 | 0.0, |
|
1964 | 0.0, | |
1848 | 0 |
|
1965 | 0 | |
1849 | ], |
|
1966 | ], | |
1850 | "desc": "modify foo", |
|
1967 | "desc": "modify foo", | |
1851 | "edges": [ |
|
1968 | "edges": [ | |
1852 | { |
|
1969 | { | |
1853 | "bcolor": "", |
|
1970 | "bcolor": "", | |
1854 | "col": 0, |
|
1971 | "col": 0, | |
1855 | "color": 1, |
|
1972 | "color": 1, | |
1856 | "nextcol": 0, |
|
1973 | "nextcol": 0, | |
1857 | "width": -1 |
|
1974 | "width": -1 | |
1858 | }, |
|
1975 | }, | |
1859 | { |
|
1976 | { | |
1860 | "bcolor": "", |
|
1977 | "bcolor": "", | |
1861 | "col": 1, |
|
1978 | "col": 1, | |
1862 | "color": 2, |
|
1979 | "color": 2, | |
1863 | "nextcol": 0, |
|
1980 | "nextcol": 0, | |
1864 | "width": -1 |
|
1981 | "width": -1 | |
1865 | } |
|
1982 | } | |
1866 | ], |
|
1983 | ], | |
1867 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", |
|
1984 | "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8", | |
1868 | "parents": [ |
|
1985 | "parents": [ | |
1869 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" |
|
1986 | "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e" | |
1870 | ], |
|
1987 | ], | |
1871 | "phase": "public", |
|
1988 | "phase": "public", | |
1872 | "row": 8, |
|
1989 | "row": 8, | |
1873 | "tags": [], |
|
1990 | "tags": [], | |
1874 | "user": "test" |
|
1991 | "user": "test" | |
1875 | }, |
|
1992 | }, | |
1876 | { |
|
1993 | { | |
1877 | "bookmarks": [], |
|
1994 | "bookmarks": [], | |
1878 | "branch": "default", |
|
1995 | "branch": "default", | |
1879 | "col": 0, |
|
1996 | "col": 0, | |
1880 | "color": 2, |
|
1997 | "color": 2, | |
1881 | "date": [ |
|
1998 | "date": [ | |
1882 | 0.0, |
|
1999 | 0.0, | |
1883 | 0 |
|
2000 | 0 | |
1884 | ], |
|
2001 | ], | |
1885 | "desc": "initial", |
|
2002 | "desc": "initial", | |
1886 | "edges": [], |
|
2003 | "edges": [], | |
1887 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", |
|
2004 | "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e", | |
1888 | "parents": [], |
|
2005 | "parents": [], | |
1889 | "phase": "public", |
|
2006 | "phase": "public", | |
1890 | "row": 9, |
|
2007 | "row": 9, | |
1891 | "tags": [], |
|
2008 | "tags": [], | |
1892 | "user": "test" |
|
2009 | "user": "test" | |
1893 | } |
|
2010 | } | |
1894 | ], |
|
2011 | ], | |
1895 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" |
|
2012 | "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" | |
1896 | } |
|
2013 | } | |
1897 |
|
2014 | |||
1898 | help/ shows help topics |
|
2015 | help/ shows help topics | |
1899 |
|
2016 | |||
1900 | $ request json-help |
|
2017 | $ request json-help | |
1901 | 200 Script output follows |
|
2018 | 200 Script output follows | |
1902 |
|
2019 | |||
1903 | { |
|
2020 | { | |
1904 | "earlycommands": [ |
|
2021 | "earlycommands": [ | |
1905 | { |
|
2022 | { | |
1906 | "summary": "abort an unfinished operation (EXPERIMENTAL)", |
|
2023 | "summary": "abort an unfinished operation (EXPERIMENTAL)", | |
1907 | "topic": "abort" |
|
2024 | "topic": "abort" | |
1908 | }, |
|
2025 | }, | |
1909 | { |
|
2026 | { | |
1910 | "summary": "add the specified files on the next commit", |
|
2027 | "summary": "add the specified files on the next commit", | |
1911 | "topic": "add" |
|
2028 | "topic": "add" | |
1912 | }, |
|
2029 | }, | |
1913 | { |
|
2030 | { | |
1914 | "summary": "show changeset information by line for each file", |
|
2031 | "summary": "show changeset information by line for each file", | |
1915 | "topic": "annotate" |
|
2032 | "topic": "annotate" | |
1916 | }, |
|
2033 | }, | |
1917 | { |
|
2034 | { | |
1918 | "summary": "make a copy of an existing repository", |
|
2035 | "summary": "make a copy of an existing repository", | |
1919 | "topic": "clone" |
|
2036 | "topic": "clone" | |
1920 | }, |
|
2037 | }, | |
1921 | { |
|
2038 | { | |
1922 | "summary": "commit the specified files or all outstanding changes", |
|
2039 | "summary": "commit the specified files or all outstanding changes", | |
1923 | "topic": "commit" |
|
2040 | "topic": "commit" | |
1924 | }, |
|
2041 | }, | |
1925 | { |
|
2042 | { | |
1926 | "summary": "resumes an interrupted operation (EXPERIMENTAL)", |
|
2043 | "summary": "resumes an interrupted operation (EXPERIMENTAL)", | |
1927 | "topic": "continue" |
|
2044 | "topic": "continue" | |
1928 | }, |
|
2045 | }, | |
1929 | { |
|
2046 | { | |
1930 | "summary": "diff repository (or selected files)", |
|
2047 | "summary": "diff repository (or selected files)", | |
1931 | "topic": "diff" |
|
2048 | "topic": "diff" | |
1932 | }, |
|
2049 | }, | |
1933 | { |
|
2050 | { | |
1934 | "summary": "dump the header and diffs for one or more changesets", |
|
2051 | "summary": "dump the header and diffs for one or more changesets", | |
1935 | "topic": "export" |
|
2052 | "topic": "export" | |
1936 | }, |
|
2053 | }, | |
1937 | { |
|
2054 | { | |
1938 | "summary": "forget the specified files on the next commit", |
|
2055 | "summary": "forget the specified files on the next commit", | |
1939 | "topic": "forget" |
|
2056 | "topic": "forget" | |
1940 | }, |
|
2057 | }, | |
1941 | { |
|
2058 | { | |
1942 | "summary": "create a new repository in the given directory", |
|
2059 | "summary": "create a new repository in the given directory", | |
1943 | "topic": "init" |
|
2060 | "topic": "init" | |
1944 | }, |
|
2061 | }, | |
1945 | { |
|
2062 | { | |
1946 | "summary": "show revision history of entire repository or files", |
|
2063 | "summary": "show revision history of entire repository or files", | |
1947 | "topic": "log" |
|
2064 | "topic": "log" | |
1948 | }, |
|
2065 | }, | |
1949 | { |
|
2066 | { | |
1950 | "summary": "merge another revision into working directory", |
|
2067 | "summary": "merge another revision into working directory", | |
1951 | "topic": "merge" |
|
2068 | "topic": "merge" | |
1952 | }, |
|
2069 | }, | |
1953 | { |
|
2070 | { | |
1954 | "summary": "pull changes from the specified source", |
|
2071 | "summary": "pull changes from the specified source", | |
1955 | "topic": "pull" |
|
2072 | "topic": "pull" | |
1956 | }, |
|
2073 | }, | |
1957 | { |
|
2074 | { | |
1958 | "summary": "push changes to the specified destination", |
|
2075 | "summary": "push changes to the specified destination", | |
1959 | "topic": "push" |
|
2076 | "topic": "push" | |
1960 | }, |
|
2077 | }, | |
1961 | { |
|
2078 | { | |
1962 | "summary": "remove the specified files on the next commit", |
|
2079 | "summary": "remove the specified files on the next commit", | |
1963 | "topic": "remove" |
|
2080 | "topic": "remove" | |
1964 | }, |
|
2081 | }, | |
1965 | { |
|
2082 | { | |
1966 | "summary": "start stand-alone webserver", |
|
2083 | "summary": "start stand-alone webserver", | |
1967 | "topic": "serve" |
|
2084 | "topic": "serve" | |
1968 | }, |
|
2085 | }, | |
1969 | { |
|
2086 | { | |
1970 | "summary": "show changed files in the working directory", |
|
2087 | "summary": "show changed files in the working directory", | |
1971 | "topic": "status" |
|
2088 | "topic": "status" | |
1972 | }, |
|
2089 | }, | |
1973 | { |
|
2090 | { | |
1974 | "summary": "summarize working directory state", |
|
2091 | "summary": "summarize working directory state", | |
1975 | "topic": "summary" |
|
2092 | "topic": "summary" | |
1976 | }, |
|
2093 | }, | |
1977 | { |
|
2094 | { | |
1978 | "summary": "update working directory (or switch revisions)", |
|
2095 | "summary": "update working directory (or switch revisions)", | |
1979 | "topic": "update" |
|
2096 | "topic": "update" | |
1980 | } |
|
2097 | } | |
1981 | ], |
|
2098 | ], | |
1982 | "othercommands": [ |
|
2099 | "othercommands": [ | |
1983 | { |
|
2100 | { | |
1984 | "summary": "add all new files, delete all missing files", |
|
2101 | "summary": "add all new files, delete all missing files", | |
1985 | "topic": "addremove" |
|
2102 | "topic": "addremove" | |
1986 | }, |
|
2103 | }, | |
1987 | { |
|
2104 | { | |
1988 | "summary": "create an unversioned archive of a repository revision", |
|
2105 | "summary": "create an unversioned archive of a repository revision", | |
1989 | "topic": "archive" |
|
2106 | "topic": "archive" | |
1990 | }, |
|
2107 | }, | |
1991 | { |
|
2108 | { | |
1992 | "summary": "reverse effect of earlier changeset", |
|
2109 | "summary": "reverse effect of earlier changeset", | |
1993 | "topic": "backout" |
|
2110 | "topic": "backout" | |
1994 | }, |
|
2111 | }, | |
1995 | { |
|
2112 | { | |
1996 | "summary": "subdivision search of changesets", |
|
2113 | "summary": "subdivision search of changesets", | |
1997 | "topic": "bisect" |
|
2114 | "topic": "bisect" | |
1998 | }, |
|
2115 | }, | |
1999 | { |
|
2116 | { | |
2000 | "summary": "create a new bookmark or list existing bookmarks", |
|
2117 | "summary": "create a new bookmark or list existing bookmarks", | |
2001 | "topic": "bookmarks" |
|
2118 | "topic": "bookmarks" | |
2002 | }, |
|
2119 | }, | |
2003 | { |
|
2120 | { | |
2004 | "summary": "set or show the current branch name", |
|
2121 | "summary": "set or show the current branch name", | |
2005 | "topic": "branch" |
|
2122 | "topic": "branch" | |
2006 | }, |
|
2123 | }, | |
2007 | { |
|
2124 | { | |
2008 | "summary": "list repository named branches", |
|
2125 | "summary": "list repository named branches", | |
2009 | "topic": "branches" |
|
2126 | "topic": "branches" | |
2010 | }, |
|
2127 | }, | |
2011 | { |
|
2128 | { | |
2012 | "summary": "create a bundle file", |
|
2129 | "summary": "create a bundle file", | |
2013 | "topic": "bundle" |
|
2130 | "topic": "bundle" | |
2014 | }, |
|
2131 | }, | |
2015 | { |
|
2132 | { | |
2016 | "summary": "output the current or given revision of files", |
|
2133 | "summary": "output the current or given revision of files", | |
2017 | "topic": "cat" |
|
2134 | "topic": "cat" | |
2018 | }, |
|
2135 | }, | |
2019 | { |
|
2136 | { | |
2020 | "summary": "show combined config settings from all hgrc files", |
|
2137 | "summary": "show combined config settings from all hgrc files", | |
2021 | "topic": "config" |
|
2138 | "topic": "config" | |
2022 | }, |
|
2139 | }, | |
2023 | { |
|
2140 | { | |
2024 | "summary": "mark files as copied for the next commit", |
|
2141 | "summary": "mark files as copied for the next commit", | |
2025 | "topic": "copy" |
|
2142 | "topic": "copy" | |
2026 | }, |
|
2143 | }, | |
2027 | { |
|
2144 | { | |
2028 | "summary": "list tracked files", |
|
2145 | "summary": "list tracked files", | |
2029 | "topic": "files" |
|
2146 | "topic": "files" | |
2030 | }, |
|
2147 | }, | |
2031 | { |
|
2148 | { | |
2032 | "summary": "copy changes from other branches onto the current branch", |
|
2149 | "summary": "copy changes from other branches onto the current branch", | |
2033 | "topic": "graft" |
|
2150 | "topic": "graft" | |
2034 | }, |
|
2151 | }, | |
2035 | { |
|
2152 | { | |
2036 | "summary": "search for a pattern in specified files", |
|
2153 | "summary": "search for a pattern in specified files", | |
2037 | "topic": "grep" |
|
2154 | "topic": "grep" | |
2038 | }, |
|
2155 | }, | |
2039 | { |
|
2156 | { | |
2040 | "summary": "show branch heads", |
|
2157 | "summary": "show branch heads", | |
2041 | "topic": "heads" |
|
2158 | "topic": "heads" | |
2042 | }, |
|
2159 | }, | |
2043 | { |
|
2160 | { | |
2044 | "summary": "show help for a given topic or a help overview", |
|
2161 | "summary": "show help for a given topic or a help overview", | |
2045 | "topic": "help" |
|
2162 | "topic": "help" | |
2046 | }, |
|
2163 | }, | |
2047 | { |
|
2164 | { | |
2048 | "summary": "identify the working directory or specified revision", |
|
2165 | "summary": "identify the working directory or specified revision", | |
2049 | "topic": "identify" |
|
2166 | "topic": "identify" | |
2050 | }, |
|
2167 | }, | |
2051 | { |
|
2168 | { | |
2052 | "summary": "import an ordered set of patches", |
|
2169 | "summary": "import an ordered set of patches", | |
2053 | "topic": "import" |
|
2170 | "topic": "import" | |
2054 | }, |
|
2171 | }, | |
2055 | { |
|
2172 | { | |
2056 | "summary": "show new changesets found in source", |
|
2173 | "summary": "show new changesets found in source", | |
2057 | "topic": "incoming" |
|
2174 | "topic": "incoming" | |
2058 | }, |
|
2175 | }, | |
2059 | { |
|
2176 | { | |
2060 | "summary": "output the current or given revision of the project manifest", |
|
2177 | "summary": "output the current or given revision of the project manifest", | |
2061 | "topic": "manifest" |
|
2178 | "topic": "manifest" | |
2062 | }, |
|
2179 | }, | |
2063 | { |
|
2180 | { | |
2064 | "summary": "show changesets not found in the destination", |
|
2181 | "summary": "show changesets not found in the destination", | |
2065 | "topic": "outgoing" |
|
2182 | "topic": "outgoing" | |
2066 | }, |
|
2183 | }, | |
2067 | { |
|
2184 | { | |
2068 | "summary": "show aliases for remote repositories", |
|
2185 | "summary": "show aliases for remote repositories", | |
2069 | "topic": "paths" |
|
2186 | "topic": "paths" | |
2070 | }, |
|
2187 | }, | |
2071 | { |
|
2188 | { | |
2072 | "summary": "set or show the current phase name", |
|
2189 | "summary": "set or show the current phase name", | |
2073 | "topic": "phase" |
|
2190 | "topic": "phase" | |
2074 | }, |
|
2191 | }, | |
2075 | { |
|
2192 | { | |
2076 | "summary": "roll back an interrupted transaction", |
|
2193 | "summary": "roll back an interrupted transaction", | |
2077 | "topic": "recover" |
|
2194 | "topic": "recover" | |
2078 | }, |
|
2195 | }, | |
2079 | { |
|
2196 | { | |
2080 | "summary": "rename files; equivalent of copy + remove", |
|
2197 | "summary": "rename files; equivalent of copy + remove", | |
2081 | "topic": "rename" |
|
2198 | "topic": "rename" | |
2082 | }, |
|
2199 | }, | |
2083 | { |
|
2200 | { | |
2084 | "summary": "redo merges or set/view the merge status of files", |
|
2201 | "summary": "redo merges or set/view the merge status of files", | |
2085 | "topic": "resolve" |
|
2202 | "topic": "resolve" | |
2086 | }, |
|
2203 | }, | |
2087 | { |
|
2204 | { | |
2088 | "summary": "restore files to their checkout state", |
|
2205 | "summary": "restore files to their checkout state", | |
2089 | "topic": "revert" |
|
2206 | "topic": "revert" | |
2090 | }, |
|
2207 | }, | |
2091 | { |
|
2208 | { | |
2092 | "summary": "print the root (top) of the current working directory", |
|
2209 | "summary": "print the root (top) of the current working directory", | |
2093 | "topic": "root" |
|
2210 | "topic": "root" | |
2094 | }, |
|
2211 | }, | |
2095 | { |
|
2212 | { | |
2096 | "summary": "save and set aside changes from the working directory", |
|
2213 | "summary": "save and set aside changes from the working directory", | |
2097 | "topic": "shelve" |
|
2214 | "topic": "shelve" | |
2098 | }, |
|
2215 | }, | |
2099 | { |
|
2216 | { | |
2100 | "summary": "add one or more tags for the current or given revision", |
|
2217 | "summary": "add one or more tags for the current or given revision", | |
2101 | "topic": "tag" |
|
2218 | "topic": "tag" | |
2102 | }, |
|
2219 | }, | |
2103 | { |
|
2220 | { | |
2104 | "summary": "list repository tags", |
|
2221 | "summary": "list repository tags", | |
2105 | "topic": "tags" |
|
2222 | "topic": "tags" | |
2106 | }, |
|
2223 | }, | |
2107 | { |
|
2224 | { | |
2108 | "summary": "apply one or more bundle files", |
|
2225 | "summary": "apply one or more bundle files", | |
2109 | "topic": "unbundle" |
|
2226 | "topic": "unbundle" | |
2110 | }, |
|
2227 | }, | |
2111 | { |
|
2228 | { | |
2112 | "summary": "restore a shelved change to the working directory", |
|
2229 | "summary": "restore a shelved change to the working directory", | |
2113 | "topic": "unshelve" |
|
2230 | "topic": "unshelve" | |
2114 | }, |
|
2231 | }, | |
2115 | { |
|
2232 | { | |
2116 | "summary": "verify the integrity of the repository", |
|
2233 | "summary": "verify the integrity of the repository", | |
2117 | "topic": "verify" |
|
2234 | "topic": "verify" | |
2118 | }, |
|
2235 | }, | |
2119 | { |
|
2236 | { | |
2120 | "summary": "output version and copyright information", |
|
2237 | "summary": "output version and copyright information", | |
2121 | "topic": "version" |
|
2238 | "topic": "version" | |
2122 | } |
|
2239 | } | |
2123 | ], |
|
2240 | ], | |
2124 | "topics": [ |
|
2241 | "topics": [ | |
2125 | { |
|
2242 | { | |
2126 | "summary": "Bundle File Formats", |
|
2243 | "summary": "Bundle File Formats", | |
2127 | "topic": "bundlespec" |
|
2244 | "topic": "bundlespec" | |
2128 | }, |
|
2245 | }, | |
2129 | { |
|
2246 | { | |
2130 | "summary": "Colorizing Outputs", |
|
2247 | "summary": "Colorizing Outputs", | |
2131 | "topic": "color" |
|
2248 | "topic": "color" | |
2132 | }, |
|
2249 | }, | |
2133 | { |
|
2250 | { | |
2134 | "summary": "Configuration Files", |
|
2251 | "summary": "Configuration Files", | |
2135 | "topic": "config" |
|
2252 | "topic": "config" | |
2136 | }, |
|
2253 | }, | |
2137 | { |
|
2254 | { | |
2138 | "summary": "Date Formats", |
|
2255 | "summary": "Date Formats", | |
2139 | "topic": "dates" |
|
2256 | "topic": "dates" | |
2140 | }, |
|
2257 | }, | |
2141 | { |
|
2258 | { | |
2142 | "summary": "Deprecated Features", |
|
2259 | "summary": "Deprecated Features", | |
2143 | "topic": "deprecated" |
|
2260 | "topic": "deprecated" | |
2144 | }, |
|
2261 | }, | |
2145 | { |
|
2262 | { | |
2146 | "summary": "Diff Formats", |
|
2263 | "summary": "Diff Formats", | |
2147 | "topic": "diffs" |
|
2264 | "topic": "diffs" | |
2148 | }, |
|
2265 | }, | |
2149 | { |
|
2266 | { | |
2150 | "summary": "Environment Variables", |
|
2267 | "summary": "Environment Variables", | |
2151 | "topic": "environment" |
|
2268 | "topic": "environment" | |
2152 | }, |
|
2269 | }, | |
2153 | { |
|
2270 | { | |
2154 | "summary": "Using Additional Features", |
|
2271 | "summary": "Using Additional Features", | |
2155 | "topic": "extensions" |
|
2272 | "topic": "extensions" | |
2156 | }, |
|
2273 | }, | |
2157 | { |
|
2274 | { | |
2158 | "summary": "Specifying File Sets", |
|
2275 | "summary": "Specifying File Sets", | |
2159 | "topic": "filesets" |
|
2276 | "topic": "filesets" | |
2160 | }, |
|
2277 | }, | |
2161 | { |
|
2278 | { | |
2162 | "summary": "Command-line flags", |
|
2279 | "summary": "Command-line flags", | |
2163 | "topic": "flags" |
|
2280 | "topic": "flags" | |
2164 | }, |
|
2281 | }, | |
2165 | { |
|
2282 | { | |
2166 | "summary": "Glossary", |
|
2283 | "summary": "Glossary", | |
2167 | "topic": "glossary" |
|
2284 | "topic": "glossary" | |
2168 | }, |
|
2285 | }, | |
2169 | { |
|
2286 | { | |
2170 | "summary": "Syntax for Mercurial Ignore Files", |
|
2287 | "summary": "Syntax for Mercurial Ignore Files", | |
2171 | "topic": "hgignore" |
|
2288 | "topic": "hgignore" | |
2172 | }, |
|
2289 | }, | |
2173 | { |
|
2290 | { | |
2174 | "summary": "Configuring hgweb", |
|
2291 | "summary": "Configuring hgweb", | |
2175 | "topic": "hgweb" |
|
2292 | "topic": "hgweb" | |
2176 | }, |
|
2293 | }, | |
2177 | { |
|
2294 | { | |
2178 | "summary": "Technical implementation topics", |
|
2295 | "summary": "Technical implementation topics", | |
2179 | "topic": "internals" |
|
2296 | "topic": "internals" | |
2180 | }, |
|
2297 | }, | |
2181 | { |
|
2298 | { | |
2182 | "summary": "Merge Tools", |
|
2299 | "summary": "Merge Tools", | |
2183 | "topic": "merge-tools" |
|
2300 | "topic": "merge-tools" | |
2184 | }, |
|
2301 | }, | |
2185 | { |
|
2302 | { | |
2186 | "summary": "Pager Support", |
|
2303 | "summary": "Pager Support", | |
2187 | "topic": "pager" |
|
2304 | "topic": "pager" | |
2188 | }, |
|
2305 | }, | |
2189 | { |
|
2306 | { | |
2190 | "summary": "File Name Patterns", |
|
2307 | "summary": "File Name Patterns", | |
2191 | "topic": "patterns" |
|
2308 | "topic": "patterns" | |
2192 | }, |
|
2309 | }, | |
2193 | { |
|
2310 | { | |
2194 | "summary": "Working with Phases", |
|
2311 | "summary": "Working with Phases", | |
2195 | "topic": "phases" |
|
2312 | "topic": "phases" | |
2196 | }, |
|
2313 | }, | |
2197 | { |
|
2314 | { | |
2198 | "summary": "Specifying Revisions", |
|
2315 | "summary": "Specifying Revisions", | |
2199 | "topic": "revisions" |
|
2316 | "topic": "revisions" | |
2200 | }, |
|
2317 | }, | |
2201 | { |
|
2318 | { | |
2202 | "summary": "Using Mercurial from scripts and automation", |
|
2319 | "summary": "Using Mercurial from scripts and automation", | |
2203 | "topic": "scripting" |
|
2320 | "topic": "scripting" | |
2204 | }, |
|
2321 | }, | |
2205 | { |
|
2322 | { | |
2206 | "summary": "Subrepositories", |
|
2323 | "summary": "Subrepositories", | |
2207 | "topic": "subrepos" |
|
2324 | "topic": "subrepos" | |
2208 | }, |
|
2325 | }, | |
2209 | { |
|
2326 | { | |
2210 | "summary": "Template Usage", |
|
2327 | "summary": "Template Usage", | |
2211 | "topic": "templating" |
|
2328 | "topic": "templating" | |
2212 | }, |
|
2329 | }, | |
2213 | { |
|
2330 | { | |
2214 | "summary": "URL Paths", |
|
2331 | "summary": "URL Paths", | |
2215 | "topic": "urls" |
|
2332 | "topic": "urls" | |
2216 | } |
|
2333 | } | |
2217 | ] |
|
2334 | ] | |
2218 | } |
|
2335 | } | |
2219 |
|
2336 | |||
2220 | help/{topic} shows an individual help topic |
|
2337 | help/{topic} shows an individual help topic | |
2221 |
|
2338 | |||
2222 | $ request json-help/phases |
|
2339 | $ request json-help/phases | |
2223 | 200 Script output follows |
|
2340 | 200 Script output follows | |
2224 |
|
2341 | |||
2225 | { |
|
2342 | { | |
2226 | "rawdoc": "Working with Phases\n*", (glob) |
|
2343 | "rawdoc": "Working with Phases\n*", (glob) | |
2227 | "topic": "phases" |
|
2344 | "topic": "phases" | |
2228 | } |
|
2345 | } | |
2229 |
|
2346 | |||
2230 | Error page shouldn't crash |
|
2347 | Error page shouldn't crash | |
2231 |
|
2348 | |||
2232 | $ request json-changeset/deadbeef |
|
2349 | $ request json-changeset/deadbeef | |
2233 | 404 Not Found |
|
2350 | 404 Not Found | |
2234 |
|
2351 | |||
2235 | { |
|
2352 | { | |
2236 | "error": "unknown revision 'deadbeef'" |
|
2353 | "error": "unknown revision 'deadbeef'" | |
2237 | } |
|
2354 | } | |
2238 | [1] |
|
2355 | [1] | |
2239 |
|
2356 | |||
2240 | Commit message with Japanese Kanji 'Noh', which ends with '\x5c' |
|
2357 | Commit message with Japanese Kanji 'Noh', which ends with '\x5c' | |
2241 |
|
2358 | |||
2242 | $ echo foo >> da/foo |
|
2359 | $ echo foo >> da/foo | |
2243 | >>> open('msg', 'wb').write(b'\x94\x5c\x0a') and None |
|
2360 | >>> open('msg', 'wb').write(b'\x94\x5c\x0a') and None | |
2244 | $ HGENCODING=cp932 hg ci -l msg |
|
2361 | $ HGENCODING=cp932 hg ci -l msg | |
2245 |
|
2362 | |||
2246 | Commit message with null character |
|
2363 | Commit message with null character | |
2247 |
|
2364 | |||
2248 | $ echo foo >> da/foo |
|
2365 | $ echo foo >> da/foo | |
2249 | >>> open('msg', 'wb').write(b'commit with null character: \0\n') and None |
|
2366 | >>> open('msg', 'wb').write(b'commit with null character: \0\n') and None | |
2250 | $ hg ci -l msg |
|
2367 | $ hg ci -l msg | |
2251 | $ rm msg |
|
2368 | $ rm msg | |
2252 |
|
2369 | |||
2253 | Stop and restart with HGENCODING=cp932 |
|
2370 | Stop and restart with HGENCODING=cp932 | |
2254 |
|
2371 | |||
2255 | $ killdaemons.py |
|
2372 | $ killdaemons.py | |
2256 | $ HGENCODING=cp932 hg serve -p $HGPORT -d --pid-file=hg.pid \ |
|
2373 | $ HGENCODING=cp932 hg serve -p $HGPORT -d --pid-file=hg.pid \ | |
2257 | > -A access.log -E error.log |
|
2374 | > -A access.log -E error.log | |
2258 | $ cat hg.pid >> $DAEMON_PIDS |
|
2375 | $ cat hg.pid >> $DAEMON_PIDS | |
2259 |
|
2376 | |||
2260 | Test json escape of multibyte characters |
|
2377 | Test json escape of multibyte characters | |
2261 |
|
2378 | |||
2262 | $ request json-filelog/tip/da/foo?revcount=2 | grep '"desc":' |
|
2379 | $ request json-filelog/tip/da/foo?revcount=2 | grep '"desc":' | |
2263 | "desc": "commit with null character: \u0000", |
|
2380 | "desc": "commit with null character: \u0000", | |
2264 | "desc": "\u80fd", |
|
2381 | "desc": "\u80fd", |
General Comments 0
You need to be logged in to leave comments.
Login now