##// END OF EJS Templates
hgweb: add absolute urls for archives in json-summary
av6 -
r29458:59058549 default
parent child Browse files
Show More
@@ -1,223 +1,224 b''
1 mimetype = 'application/json'
1 mimetype = 'application/json'
2 filerevision = '\{
2 filerevision = '\{
3 "node": {node|json},
3 "node": {node|json},
4 "path": {file|json},
4 "path": {file|json},
5 "date": {date|json},
5 "date": {date|json},
6 "desc": {desc|utf8|json},
6 "desc": {desc|utf8|json},
7 "branch": {if(branch, branch%changesetbranch, "default"|json)},
7 "branch": {if(branch, branch%changesetbranch, "default"|json)},
8 "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
8 "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
9 "tags": [{join(tags%changelistentryname, ", ")}],
9 "tags": [{join(tags%changelistentryname, ", ")}],
10 "user": {author|utf8|json},
10 "user": {author|utf8|json},
11 "parents": [{join(parent%changesetparent, ", ")}],
11 "parents": [{join(parent%changesetparent, ", ")}],
12 "phase": {phase|json},
12 "phase": {phase|json},
13 "lines": [{join(text%lineentry, ", ")}]
13 "lines": [{join(text%lineentry, ", ")}]
14 }'
14 }'
15 lineentry = '\{
15 lineentry = '\{
16 "line": {line|json}
16 "line": {line|json}
17 }'
17 }'
18 search = '\{
18 search = '\{
19 "node": {node|json},
19 "node": {node|json},
20 "query": {query|json},
20 "query": {query|json},
21 "entries": [{join(entries%searchentry, ", ")}]
21 "entries": [{join(entries%searchentry, ", ")}]
22 }'
22 }'
23 searchentry = '{changelistentry}'
23 searchentry = '{changelistentry}'
24 # changelog and shortlog are the same web API but with different
24 # changelog and shortlog are the same web API but with different
25 # number of entries.
25 # number of entries.
26 changelog = changelist.tmpl
26 changelog = changelist.tmpl
27 shortlog = changelist.tmpl
27 shortlog = changelist.tmpl
28 changelistentry = '\{
28 changelistentry = '\{
29 "node": {node|json},
29 "node": {node|json},
30 "date": {date|json},
30 "date": {date|json},
31 "desc": {desc|utf8|json},
31 "desc": {desc|utf8|json},
32 "branch": {if(branch, branch%changesetbranch, "default"|json)},
32 "branch": {if(branch, branch%changesetbranch, "default"|json)},
33 "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
33 "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
34 "tags": [{join(tags%changelistentryname, ", ")}],
34 "tags": [{join(tags%changelistentryname, ", ")}],
35 "user": {author|utf8|json},
35 "user": {author|utf8|json},
36 "phase": {phase|json},
36 "phase": {phase|json},
37 "parents": [{if(allparents, join(allparents%changesetparent, ", "),
37 "parents": [{if(allparents, join(allparents%changesetparent, ", "),
38 join(parent%changesetparent, ", "))}]
38 join(parent%changesetparent, ", "))}]
39 }'
39 }'
40 changelistentryname = '{name|utf8|json}'
40 changelistentryname = '{name|utf8|json}'
41 changeset = '\{
41 changeset = '\{
42 "node": {node|json},
42 "node": {node|json},
43 "date": {date|json},
43 "date": {date|json},
44 "desc": {desc|utf8|json},
44 "desc": {desc|utf8|json},
45 "branch": {if(branch, branch%changesetbranch, "default"|json)},
45 "branch": {if(branch, branch%changesetbranch, "default"|json)},
46 "bookmarks": [{join(changesetbookmark, ", ")}],
46 "bookmarks": [{join(changesetbookmark, ", ")}],
47 "tags": [{join(changesettag, ", ")}],
47 "tags": [{join(changesettag, ", ")}],
48 "user": {author|utf8|json},
48 "user": {author|utf8|json},
49 "parents": [{join(parent%changesetparent, ", ")}],
49 "parents": [{join(parent%changesetparent, ", ")}],
50 "phase": {phase|json}
50 "phase": {phase|json}
51 }'
51 }'
52 changesetbranch = '{name|utf8|json}'
52 changesetbranch = '{name|utf8|json}'
53 changesetbookmark = '{bookmark|utf8|json}'
53 changesetbookmark = '{bookmark|utf8|json}'
54 changesettag = '{tag|utf8|json}'
54 changesettag = '{tag|utf8|json}'
55 changesetparent = '{node|json}'
55 changesetparent = '{node|json}'
56 manifest = '\{
56 manifest = '\{
57 "node": {node|json},
57 "node": {node|json},
58 "abspath": {path|json},
58 "abspath": {path|json},
59 "directories": [{join(dentries%direntry, ", ")}],
59 "directories": [{join(dentries%direntry, ", ")}],
60 "files": [{join(fentries%fileentry, ", ")}],
60 "files": [{join(fentries%fileentry, ", ")}],
61 "bookmarks": [{join(bookmarks%name, ", ")}],
61 "bookmarks": [{join(bookmarks%name, ", ")}],
62 "tags": [{join(tags%name, ", ")}]
62 "tags": [{join(tags%name, ", ")}]
63 }'
63 }'
64 name = '{name|utf8|json}'
64 name = '{name|utf8|json}'
65 direntry = '\{
65 direntry = '\{
66 "abspath": {path|json},
66 "abspath": {path|json},
67 "basename": {basename|json},
67 "basename": {basename|json},
68 "emptydirs": {emptydirs|json}
68 "emptydirs": {emptydirs|json}
69 }'
69 }'
70 fileentry = '\{
70 fileentry = '\{
71 "abspath": {file|json},
71 "abspath": {file|json},
72 "basename": {basename|json},
72 "basename": {basename|json},
73 "date": {date|json},
73 "date": {date|json},
74 "size": {size|json},
74 "size": {size|json},
75 "flags": {permissions|json}
75 "flags": {permissions|json}
76 }'
76 }'
77 tags = '\{
77 tags = '\{
78 "node": {node|json},
78 "node": {node|json},
79 "tags": [{join(entriesnotip%tagentry, ", ")}]
79 "tags": [{join(entriesnotip%tagentry, ", ")}]
80 }'
80 }'
81 tagentry = '\{
81 tagentry = '\{
82 "tag": {tag|utf8|json},
82 "tag": {tag|utf8|json},
83 "node": {node|json},
83 "node": {node|json},
84 "date": {date|json}
84 "date": {date|json}
85 }'
85 }'
86 bookmarks = '\{
86 bookmarks = '\{
87 "node": {node|json},
87 "node": {node|json},
88 "bookmarks": [{join(entries%bookmarkentry, ", ")}]
88 "bookmarks": [{join(entries%bookmarkentry, ", ")}]
89 }'
89 }'
90 bookmarkentry = '\{
90 bookmarkentry = '\{
91 "bookmark": {bookmark|utf8|json},
91 "bookmark": {bookmark|utf8|json},
92 "node": {node|json},
92 "node": {node|json},
93 "date": {date|json}
93 "date": {date|json}
94 }'
94 }'
95 branches = '\{
95 branches = '\{
96 "branches": [{join(entries%branchentry, ", ")}]
96 "branches": [{join(entries%branchentry, ", ")}]
97 }'
97 }'
98 branchentry = '\{
98 branchentry = '\{
99 "branch": {branch|utf8|json},
99 "branch": {branch|utf8|json},
100 "node": {node|json},
100 "node": {node|json},
101 "date": {date|json},
101 "date": {date|json},
102 "status": {status|json}
102 "status": {status|json}
103 }'
103 }'
104 shortlogentry = '{changelistentry}'
104 shortlogentry = '{changelistentry}'
105 summary = '\{
105 summary = '\{
106 "node": {node|json},
106 "node": {node|json},
107 "lastchange": {lastchange|json},
107 "lastchange": {lastchange|json},
108 "bookmarks": [{join(bookmarks%bookmarkentry, ", ")}],
108 "bookmarks": [{join(bookmarks%bookmarkentry, ", ")}],
109 "branches": [{join(branches%branchentry, ", ")}],
109 "branches": [{join(branches%branchentry, ", ")}],
110 "shortlog": [{join(shortlog%shortlogentry, ", ")}],
110 "shortlog": [{join(shortlog%shortlogentry, ", ")}],
111 "tags": [{join(tags%tagentry, ", ")}],
111 "tags": [{join(tags%tagentry, ", ")}],
112 "archives": [{join(archives%archiveentry, ", ")}]
112 "archives": [{join(archives%archiveentry, ", ")}]
113 }'
113 }'
114 archiveentry = '\{
114 archiveentry = '\{
115 "node": {node|json},
115 "node": {node|json},
116 "extension": {extension|json},
116 "extension": {extension|json},
117 "type": {type|json}
117 "type": {type|json},
118 "url": {"{urlbase}{url}archive/{node}{extension}"|json}
118 }'
119 }'
119 filediff = '\{
120 filediff = '\{
120 "path": {file|json},
121 "path": {file|json},
121 "node": {node|json},
122 "node": {node|json},
122 "date": {date|json},
123 "date": {date|json},
123 "desc": {desc|utf8|json},
124 "desc": {desc|utf8|json},
124 "author": {author|utf8|json},
125 "author": {author|utf8|json},
125 "parents": [{join(parent%changesetparent, ", ")}],
126 "parents": [{join(parent%changesetparent, ", ")}],
126 "children": [{join(child%changesetparent, ", ")}],
127 "children": [{join(child%changesetparent, ", ")}],
127 "diff": [{join(diff%diffblock, ", ")}]
128 "diff": [{join(diff%diffblock, ", ")}]
128 }'
129 }'
129 diffblock = '\{
130 diffblock = '\{
130 "blockno": {blockno|json},
131 "blockno": {blockno|json},
131 "lines": [{join(lines, ", ")}]
132 "lines": [{join(lines, ", ")}]
132 }'
133 }'
133 difflineplus = '\{
134 difflineplus = '\{
134 "t": "+",
135 "t": "+",
135 "n": {lineno|json},
136 "n": {lineno|json},
136 "l": {line|json}
137 "l": {line|json}
137 }'
138 }'
138 difflineminus = '\{
139 difflineminus = '\{
139 "t": "-",
140 "t": "-",
140 "n": {lineno|json},
141 "n": {lineno|json},
141 "l": {line|json}
142 "l": {line|json}
142 }'
143 }'
143 difflineat = '\{
144 difflineat = '\{
144 "t": "@",
145 "t": "@",
145 "n": {lineno|json},
146 "n": {lineno|json},
146 "l": {line|json}
147 "l": {line|json}
147 }'
148 }'
148 diffline = '\{
149 diffline = '\{
149 "t": "",
150 "t": "",
150 "n": {lineno|json},
151 "n": {lineno|json},
151 "l": {line|json}
152 "l": {line|json}
152 }'
153 }'
153 filecomparison = '\{
154 filecomparison = '\{
154 "path": {file|json},
155 "path": {file|json},
155 "node": {node|json},
156 "node": {node|json},
156 "date": {date|json},
157 "date": {date|json},
157 "desc": {desc|utf8|json},
158 "desc": {desc|utf8|json},
158 "author": {author|utf8|json},
159 "author": {author|utf8|json},
159 "parents": [{join(parent%changesetparent, ", ")}],
160 "parents": [{join(parent%changesetparent, ", ")}],
160 "children": [{join(child%changesetparent, ", ")}],
161 "children": [{join(child%changesetparent, ", ")}],
161 "leftnode": {leftnode|json},
162 "leftnode": {leftnode|json},
162 "rightnode": {rightnode|json},
163 "rightnode": {rightnode|json},
163 "comparison": [{join(comparison, ", ")}]
164 "comparison": [{join(comparison, ", ")}]
164 }'
165 }'
165 comparisonblock = '\{
166 comparisonblock = '\{
166 "lines": [{join(lines, ", ")}]
167 "lines": [{join(lines, ", ")}]
167 }'
168 }'
168 comparisonline = '\{
169 comparisonline = '\{
169 "t": {type|json},
170 "t": {type|json},
170 "ln": {leftlineno|json},
171 "ln": {leftlineno|json},
171 "ll": {leftline|json},
172 "ll": {leftline|json},
172 "rn": {rightlineno|json},
173 "rn": {rightlineno|json},
173 "rl": {rightline|json}
174 "rl": {rightline|json}
174 }'
175 }'
175 fileannotate = '\{
176 fileannotate = '\{
176 "abspath": {file|json},
177 "abspath": {file|json},
177 "node": {node|json},
178 "node": {node|json},
178 "author": {author|utf8|json},
179 "author": {author|utf8|json},
179 "date": {date|json},
180 "date": {date|json},
180 "desc": {desc|utf8|json},
181 "desc": {desc|utf8|json},
181 "parents": [{join(parent%changesetparent, ", ")}],
182 "parents": [{join(parent%changesetparent, ", ")}],
182 "children": [{join(child%changesetparent, ", ")}],
183 "children": [{join(child%changesetparent, ", ")}],
183 "permissions": {permissions|json},
184 "permissions": {permissions|json},
184 "annotate": [{join(annotate%fileannotation, ", ")}]
185 "annotate": [{join(annotate%fileannotation, ", ")}]
185 }'
186 }'
186 fileannotation = '\{
187 fileannotation = '\{
187 "node": {node|json},
188 "node": {node|json},
188 "author": {author|utf8|json},
189 "author": {author|utf8|json},
189 "desc": {desc|utf8|json},
190 "desc": {desc|utf8|json},
190 "abspath": {file|json},
191 "abspath": {file|json},
191 "targetline": {targetline|json},
192 "targetline": {targetline|json},
192 "line": {line|json},
193 "line": {line|json},
193 "lineno": {lineno|json},
194 "lineno": {lineno|json},
194 "revdate": {revdate|json}
195 "revdate": {revdate|json}
195 }'
196 }'
196 filelog = '\{
197 filelog = '\{
197 "entries": [{join(entries%changelistentry, ", ")}]
198 "entries": [{join(entries%changelistentry, ", ")}]
198 }'
199 }'
199 graph = '"not yet implemented"'
200 graph = '"not yet implemented"'
200 helptopics = '\{
201 helptopics = '\{
201 "topics": [{join(topics%helptopicentry, ", ")}],
202 "topics": [{join(topics%helptopicentry, ", ")}],
202 "earlycommands": [{join(earlycommands%helptopicentry, ", ")}],
203 "earlycommands": [{join(earlycommands%helptopicentry, ", ")}],
203 "othercommands": [{join(othercommands%helptopicentry, ", ")}]
204 "othercommands": [{join(othercommands%helptopicentry, ", ")}]
204 }'
205 }'
205 helptopicentry = '\{
206 helptopicentry = '\{
206 "topic": {topic|utf8|json},
207 "topic": {topic|utf8|json},
207 "summary": {summary|utf8|json}
208 "summary": {summary|utf8|json}
208 }'
209 }'
209 help = '\{
210 help = '\{
210 "topic": {topic|utf8|json},
211 "topic": {topic|utf8|json},
211 "rawdoc": {doc|utf8|json}
212 "rawdoc": {doc|utf8|json}
212 }'
213 }'
213 filenodelink = ''
214 filenodelink = ''
214 filenolink = ''
215 filenolink = ''
215 index = '\{
216 index = '\{
216 "entries": [{join(entries%indexentry, ", ")}]
217 "entries": [{join(entries%indexentry, ", ")}]
217 }'
218 }'
218 indexentry = '\{
219 indexentry = '\{
219 "name": {name|utf8|json},
220 "name": {name|utf8|json},
220 "description": {description|utf8|json},
221 "description": {description|utf8|json},
221 "contact": {contact|utf8|json},
222 "contact": {contact|utf8|json},
222 "lastchange": {lastchange|json}
223 "lastchange": {lastchange|json}
223 }'
224 }'
@@ -1,1640 +1,1641 b''
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 changeset/ renders the tip changeset
591 changeset/ renders the tip changeset
592
592
593 $ request json-rev
593 $ request json-rev
594 200 Script output follows
594 200 Script output follows
595
595
596 {
596 {
597 "bookmarks": [],
597 "bookmarks": [],
598 "branch": "default",
598 "branch": "default",
599 "date": [
599 "date": [
600 0.0,
600 0.0,
601 0
601 0
602 ],
602 ],
603 "desc": "merge test-branch into default",
603 "desc": "merge test-branch into default",
604 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
604 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
605 "parents": [
605 "parents": [
606 "ceed296fe500c3fac9541e31dad860cb49c89e45",
606 "ceed296fe500c3fac9541e31dad860cb49c89e45",
607 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
607 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
608 ],
608 ],
609 "phase": "draft",
609 "phase": "draft",
610 "tags": [
610 "tags": [
611 "tip"
611 "tip"
612 ],
612 ],
613 "user": "test"
613 "user": "test"
614 }
614 }
615
615
616 changeset/{revision} shows tags
616 changeset/{revision} shows tags
617
617
618 $ request json-rev/78896eb0e102
618 $ request json-rev/78896eb0e102
619 200 Script output follows
619 200 Script output follows
620
620
621 {
621 {
622 "bookmarks": [],
622 "bookmarks": [],
623 "branch": "default",
623 "branch": "default",
624 "date": [
624 "date": [
625 0.0,
625 0.0,
626 0
626 0
627 ],
627 ],
628 "desc": "move foo",
628 "desc": "move foo",
629 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
629 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
630 "parents": [
630 "parents": [
631 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
631 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
632 ],
632 ],
633 "phase": "public",
633 "phase": "public",
634 "tags": [
634 "tags": [
635 "tag1"
635 "tag1"
636 ],
636 ],
637 "user": "test"
637 "user": "test"
638 }
638 }
639
639
640 changeset/{revision} shows bookmarks
640 changeset/{revision} shows bookmarks
641
641
642 $ request json-rev/8d7c456572ac
642 $ request json-rev/8d7c456572ac
643 200 Script output follows
643 200 Script output follows
644
644
645 {
645 {
646 "bookmarks": [
646 "bookmarks": [
647 "bookmark1"
647 "bookmark1"
648 ],
648 ],
649 "branch": "default",
649 "branch": "default",
650 "date": [
650 "date": [
651 0.0,
651 0.0,
652 0
652 0
653 ],
653 ],
654 "desc": "modify da/foo",
654 "desc": "modify da/foo",
655 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
655 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
656 "parents": [
656 "parents": [
657 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
657 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
658 ],
658 ],
659 "phase": "public",
659 "phase": "public",
660 "tags": [],
660 "tags": [],
661 "user": "test"
661 "user": "test"
662 }
662 }
663
663
664 changeset/{revision} shows branches
664 changeset/{revision} shows branches
665
665
666 $ request json-rev/6ab967a8ab34
666 $ request json-rev/6ab967a8ab34
667 200 Script output follows
667 200 Script output follows
668
668
669 {
669 {
670 "bookmarks": [],
670 "bookmarks": [],
671 "branch": "test-branch",
671 "branch": "test-branch",
672 "date": [
672 "date": [
673 0.0,
673 0.0,
674 0
674 0
675 ],
675 ],
676 "desc": "create test branch",
676 "desc": "create test branch",
677 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
677 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
678 "parents": [
678 "parents": [
679 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
679 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
680 ],
680 ],
681 "phase": "draft",
681 "phase": "draft",
682 "tags": [],
682 "tags": [],
683 "user": "test"
683 "user": "test"
684 }
684 }
685
685
686 manifest/{revision}/{path} shows info about a directory at a revision
686 manifest/{revision}/{path} shows info about a directory at a revision
687
687
688 $ request json-manifest/06e557f3edf6/
688 $ request json-manifest/06e557f3edf6/
689 200 Script output follows
689 200 Script output follows
690
690
691 {
691 {
692 "abspath": "/",
692 "abspath": "/",
693 "bookmarks": [],
693 "bookmarks": [],
694 "directories": [
694 "directories": [
695 {
695 {
696 "abspath": "/da",
696 "abspath": "/da",
697 "basename": "da",
697 "basename": "da",
698 "emptydirs": ""
698 "emptydirs": ""
699 }
699 }
700 ],
700 ],
701 "files": [
701 "files": [
702 {
702 {
703 "abspath": "foo",
703 "abspath": "foo",
704 "basename": "foo",
704 "basename": "foo",
705 "date": [
705 "date": [
706 0.0,
706 0.0,
707 0
707 0
708 ],
708 ],
709 "flags": "",
709 "flags": "",
710 "size": 4
710 "size": 4
711 }
711 }
712 ],
712 ],
713 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
713 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
714 "tags": []
714 "tags": []
715 }
715 }
716
716
717 tags/ shows tags info
717 tags/ shows tags info
718
718
719 $ request json-tags
719 $ request json-tags
720 200 Script output follows
720 200 Script output follows
721
721
722 {
722 {
723 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
723 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
724 "tags": [
724 "tags": [
725 {
725 {
726 "date": [
726 "date": [
727 0.0,
727 0.0,
728 0
728 0
729 ],
729 ],
730 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
730 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
731 "tag": "tag2"
731 "tag": "tag2"
732 },
732 },
733 {
733 {
734 "date": [
734 "date": [
735 0.0,
735 0.0,
736 0
736 0
737 ],
737 ],
738 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
738 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
739 "tag": "tag1"
739 "tag": "tag1"
740 }
740 }
741 ]
741 ]
742 }
742 }
743
743
744 bookmarks/ shows bookmarks info
744 bookmarks/ shows bookmarks info
745
745
746 $ request json-bookmarks
746 $ request json-bookmarks
747 200 Script output follows
747 200 Script output follows
748
748
749 {
749 {
750 "bookmarks": [
750 "bookmarks": [
751 {
751 {
752 "bookmark": "bookmark2",
752 "bookmark": "bookmark2",
753 "date": [
753 "date": [
754 0.0,
754 0.0,
755 0
755 0
756 ],
756 ],
757 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
757 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
758 },
758 },
759 {
759 {
760 "bookmark": "bookmark1",
760 "bookmark": "bookmark1",
761 "date": [
761 "date": [
762 0.0,
762 0.0,
763 0
763 0
764 ],
764 ],
765 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5"
765 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5"
766 }
766 }
767 ],
767 ],
768 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"
768 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"
769 }
769 }
770
770
771 branches/ shows branches info
771 branches/ shows branches info
772
772
773 $ request json-branches
773 $ request json-branches
774 200 Script output follows
774 200 Script output follows
775
775
776 {
776 {
777 "branches": [
777 "branches": [
778 {
778 {
779 "branch": "default",
779 "branch": "default",
780 "date": [
780 "date": [
781 0.0,
781 0.0,
782 0
782 0
783 ],
783 ],
784 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
784 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
785 "status": "open"
785 "status": "open"
786 },
786 },
787 {
787 {
788 "branch": "test-branch",
788 "branch": "test-branch",
789 "date": [
789 "date": [
790 0.0,
790 0.0,
791 0
791 0
792 ],
792 ],
793 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
793 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
794 "status": "inactive"
794 "status": "inactive"
795 }
795 }
796 ]
796 ]
797 }
797 }
798
798
799 summary/ shows a summary of repository state
799 summary/ shows a summary of repository state
800
800
801 $ request json-summary
801 $ request json-summary
802 200 Script output follows
802 200 Script output follows
803
803
804 {
804 {
805 "archives": [
805 "archives": [
806 {
806 {
807 "extension": ".tar.bz2",
807 "extension": ".tar.bz2",
808 "node": "tip",
808 "node": "tip",
809 "type": "bz2"
809 "type": "bz2",
810 "url": "http://*:$HGPORT/archive/tip.tar.bz2" (glob)
810 }
811 }
811 ],
812 ],
812 "bookmarks": [
813 "bookmarks": [
813 {
814 {
814 "bookmark": "bookmark2",
815 "bookmark": "bookmark2",
815 "date": [
816 "date": [
816 0.0,
817 0.0,
817 0
818 0
818 ],
819 ],
819 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
820 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
820 },
821 },
821 {
822 {
822 "bookmark": "bookmark1",
823 "bookmark": "bookmark1",
823 "date": [
824 "date": [
824 0.0,
825 0.0,
825 0
826 0
826 ],
827 ],
827 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5"
828 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5"
828 }
829 }
829 ],
830 ],
830 "branches": [
831 "branches": [
831 {
832 {
832 "branch": "default",
833 "branch": "default",
833 "date": [
834 "date": [
834 0.0,
835 0.0,
835 0
836 0
836 ],
837 ],
837 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
838 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
838 "status": "open"
839 "status": "open"
839 },
840 },
840 {
841 {
841 "branch": "test-branch",
842 "branch": "test-branch",
842 "date": [
843 "date": [
843 0.0,
844 0.0,
844 0
845 0
845 ],
846 ],
846 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
847 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
847 "status": "inactive"
848 "status": "inactive"
848 }
849 }
849 ],
850 ],
850 "lastchange": [
851 "lastchange": [
851 0.0,
852 0.0,
852 0
853 0
853 ],
854 ],
854 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
855 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
855 "shortlog": [
856 "shortlog": [
856 {
857 {
857 "bookmarks": [],
858 "bookmarks": [],
858 "branch": "default",
859 "branch": "default",
859 "date": [
860 "date": [
860 0.0,
861 0.0,
861 0
862 0
862 ],
863 ],
863 "desc": "merge test-branch into default",
864 "desc": "merge test-branch into default",
864 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
865 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
865 "parents": [
866 "parents": [
866 "ceed296fe500c3fac9541e31dad860cb49c89e45",
867 "ceed296fe500c3fac9541e31dad860cb49c89e45",
867 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
868 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
868 ],
869 ],
869 "phase": "draft",
870 "phase": "draft",
870 "tags": [
871 "tags": [
871 "tip"
872 "tip"
872 ],
873 ],
873 "user": "test"
874 "user": "test"
874 },
875 },
875 {
876 {
876 "bookmarks": [],
877 "bookmarks": [],
877 "branch": "test-branch",
878 "branch": "test-branch",
878 "date": [
879 "date": [
879 0.0,
880 0.0,
880 0
881 0
881 ],
882 ],
882 "desc": "another commit in test-branch",
883 "desc": "another commit in test-branch",
883 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
884 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
884 "parents": [
885 "parents": [
885 "6ab967a8ab3489227a83f80e920faa039a71819f"
886 "6ab967a8ab3489227a83f80e920faa039a71819f"
886 ],
887 ],
887 "phase": "draft",
888 "phase": "draft",
888 "tags": [],
889 "tags": [],
889 "user": "test"
890 "user": "test"
890 },
891 },
891 {
892 {
892 "bookmarks": [],
893 "bookmarks": [],
893 "branch": "test-branch",
894 "branch": "test-branch",
894 "date": [
895 "date": [
895 0.0,
896 0.0,
896 0
897 0
897 ],
898 ],
898 "desc": "create test branch",
899 "desc": "create test branch",
899 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
900 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
900 "parents": [
901 "parents": [
901 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
902 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
902 ],
903 ],
903 "phase": "draft",
904 "phase": "draft",
904 "tags": [],
905 "tags": [],
905 "user": "test"
906 "user": "test"
906 },
907 },
907 {
908 {
908 "bookmarks": [
909 "bookmarks": [
909 "bookmark2"
910 "bookmark2"
910 ],
911 ],
911 "branch": "default",
912 "branch": "default",
912 "date": [
913 "date": [
913 0.0,
914 0.0,
914 0
915 0
915 ],
916 ],
916 "desc": "create tag2",
917 "desc": "create tag2",
917 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
918 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
918 "parents": [
919 "parents": [
919 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
920 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
920 ],
921 ],
921 "phase": "draft",
922 "phase": "draft",
922 "tags": [],
923 "tags": [],
923 "user": "test"
924 "user": "test"
924 },
925 },
925 {
926 {
926 "bookmarks": [],
927 "bookmarks": [],
927 "branch": "default",
928 "branch": "default",
928 "date": [
929 "date": [
929 0.0,
930 0.0,
930 0
931 0
931 ],
932 ],
932 "desc": "another commit to da/foo",
933 "desc": "another commit to da/foo",
933 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
934 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
934 "parents": [
935 "parents": [
935 "93a8ce14f89156426b7fa981af8042da53f03aa0"
936 "93a8ce14f89156426b7fa981af8042da53f03aa0"
936 ],
937 ],
937 "phase": "draft",
938 "phase": "draft",
938 "tags": [
939 "tags": [
939 "tag2"
940 "tag2"
940 ],
941 ],
941 "user": "test"
942 "user": "test"
942 },
943 },
943 {
944 {
944 "bookmarks": [],
945 "bookmarks": [],
945 "branch": "default",
946 "branch": "default",
946 "date": [
947 "date": [
947 0.0,
948 0.0,
948 0
949 0
949 ],
950 ],
950 "desc": "create tag",
951 "desc": "create tag",
951 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
952 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
952 "parents": [
953 "parents": [
953 "78896eb0e102174ce9278438a95e12543e4367a7"
954 "78896eb0e102174ce9278438a95e12543e4367a7"
954 ],
955 ],
955 "phase": "public",
956 "phase": "public",
956 "tags": [],
957 "tags": [],
957 "user": "test"
958 "user": "test"
958 },
959 },
959 {
960 {
960 "bookmarks": [],
961 "bookmarks": [],
961 "branch": "default",
962 "branch": "default",
962 "date": [
963 "date": [
963 0.0,
964 0.0,
964 0
965 0
965 ],
966 ],
966 "desc": "move foo",
967 "desc": "move foo",
967 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
968 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
968 "parents": [
969 "parents": [
969 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
970 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
970 ],
971 ],
971 "phase": "public",
972 "phase": "public",
972 "tags": [
973 "tags": [
973 "tag1"
974 "tag1"
974 ],
975 ],
975 "user": "test"
976 "user": "test"
976 },
977 },
977 {
978 {
978 "bookmarks": [
979 "bookmarks": [
979 "bookmark1"
980 "bookmark1"
980 ],
981 ],
981 "branch": "default",
982 "branch": "default",
982 "date": [
983 "date": [
983 0.0,
984 0.0,
984 0
985 0
985 ],
986 ],
986 "desc": "modify da/foo",
987 "desc": "modify da/foo",
987 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
988 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
988 "parents": [
989 "parents": [
989 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
990 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
990 ],
991 ],
991 "phase": "public",
992 "phase": "public",
992 "tags": [],
993 "tags": [],
993 "user": "test"
994 "user": "test"
994 },
995 },
995 {
996 {
996 "bookmarks": [],
997 "bookmarks": [],
997 "branch": "default",
998 "branch": "default",
998 "date": [
999 "date": [
999 0.0,
1000 0.0,
1000 0
1001 0
1001 ],
1002 ],
1002 "desc": "modify foo",
1003 "desc": "modify foo",
1003 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1004 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1004 "parents": [
1005 "parents": [
1005 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1006 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1006 ],
1007 ],
1007 "phase": "public",
1008 "phase": "public",
1008 "tags": [],
1009 "tags": [],
1009 "user": "test"
1010 "user": "test"
1010 },
1011 },
1011 {
1012 {
1012 "bookmarks": [],
1013 "bookmarks": [],
1013 "branch": "default",
1014 "branch": "default",
1014 "date": [
1015 "date": [
1015 0.0,
1016 0.0,
1016 0
1017 0
1017 ],
1018 ],
1018 "desc": "initial",
1019 "desc": "initial",
1019 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
1020 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
1020 "parents": [],
1021 "parents": [],
1021 "phase": "public",
1022 "phase": "public",
1022 "tags": [],
1023 "tags": [],
1023 "user": "test"
1024 "user": "test"
1024 }
1025 }
1025 ],
1026 ],
1026 "tags": [
1027 "tags": [
1027 {
1028 {
1028 "date": [
1029 "date": [
1029 0.0,
1030 0.0,
1030 0
1031 0
1031 ],
1032 ],
1032 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
1033 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
1033 "tag": "tag2"
1034 "tag": "tag2"
1034 },
1035 },
1035 {
1036 {
1036 "date": [
1037 "date": [
1037 0.0,
1038 0.0,
1038 0
1039 0
1039 ],
1040 ],
1040 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
1041 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
1041 "tag": "tag1"
1042 "tag": "tag1"
1042 }
1043 }
1043 ]
1044 ]
1044 }
1045 }
1045
1046
1046 $ request json-changelog?rev=create
1047 $ request json-changelog?rev=create
1047 200 Script output follows
1048 200 Script output follows
1048
1049
1049 {
1050 {
1050 "entries": [
1051 "entries": [
1051 {
1052 {
1052 "bookmarks": [],
1053 "bookmarks": [],
1053 "branch": "test-branch",
1054 "branch": "test-branch",
1054 "date": [
1055 "date": [
1055 0.0,
1056 0.0,
1056 0
1057 0
1057 ],
1058 ],
1058 "desc": "create test branch",
1059 "desc": "create test branch",
1059 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
1060 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
1060 "parents": [
1061 "parents": [
1061 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1062 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1062 ],
1063 ],
1063 "phase": "draft",
1064 "phase": "draft",
1064 "tags": [],
1065 "tags": [],
1065 "user": "test"
1066 "user": "test"
1066 },
1067 },
1067 {
1068 {
1068 "bookmarks": [
1069 "bookmarks": [
1069 "bookmark2"
1070 "bookmark2"
1070 ],
1071 ],
1071 "branch": "default",
1072 "branch": "default",
1072 "date": [
1073 "date": [
1073 0.0,
1074 0.0,
1074 0
1075 0
1075 ],
1076 ],
1076 "desc": "create tag2",
1077 "desc": "create tag2",
1077 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
1078 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
1078 "parents": [
1079 "parents": [
1079 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
1080 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
1080 ],
1081 ],
1081 "phase": "draft",
1082 "phase": "draft",
1082 "tags": [],
1083 "tags": [],
1083 "user": "test"
1084 "user": "test"
1084 },
1085 },
1085 {
1086 {
1086 "bookmarks": [],
1087 "bookmarks": [],
1087 "branch": "default",
1088 "branch": "default",
1088 "date": [
1089 "date": [
1089 0.0,
1090 0.0,
1090 0
1091 0
1091 ],
1092 ],
1092 "desc": "create tag",
1093 "desc": "create tag",
1093 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
1094 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
1094 "parents": [
1095 "parents": [
1095 "78896eb0e102174ce9278438a95e12543e4367a7"
1096 "78896eb0e102174ce9278438a95e12543e4367a7"
1096 ],
1097 ],
1097 "phase": "public",
1098 "phase": "public",
1098 "tags": [],
1099 "tags": [],
1099 "user": "test"
1100 "user": "test"
1100 }
1101 }
1101 ],
1102 ],
1102 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
1103 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
1103 "query": "create"
1104 "query": "create"
1104 }
1105 }
1105
1106
1106 filediff/{revision}/{path} shows changes to a file in a revision
1107 filediff/{revision}/{path} shows changes to a file in a revision
1107
1108
1108 $ request json-diff/f8bbb9024b10/foo
1109 $ request json-diff/f8bbb9024b10/foo
1109 200 Script output follows
1110 200 Script output follows
1110
1111
1111 {
1112 {
1112 "author": "test",
1113 "author": "test",
1113 "children": [],
1114 "children": [],
1114 "date": [
1115 "date": [
1115 0.0,
1116 0.0,
1116 0
1117 0
1117 ],
1118 ],
1118 "desc": "modify foo",
1119 "desc": "modify foo",
1119 "diff": [
1120 "diff": [
1120 {
1121 {
1121 "blockno": 1,
1122 "blockno": 1,
1122 "lines": [
1123 "lines": [
1123 {
1124 {
1124 "l": "--- a/foo\tThu Jan 01 00:00:00 1970 +0000\n",
1125 "l": "--- a/foo\tThu Jan 01 00:00:00 1970 +0000\n",
1125 "n": 1,
1126 "n": 1,
1126 "t": "-"
1127 "t": "-"
1127 },
1128 },
1128 {
1129 {
1129 "l": "+++ b/foo\tThu Jan 01 00:00:00 1970 +0000\n",
1130 "l": "+++ b/foo\tThu Jan 01 00:00:00 1970 +0000\n",
1130 "n": 2,
1131 "n": 2,
1131 "t": "+"
1132 "t": "+"
1132 },
1133 },
1133 {
1134 {
1134 "l": "@@ -1,1 +1,1 @@\n",
1135 "l": "@@ -1,1 +1,1 @@\n",
1135 "n": 3,
1136 "n": 3,
1136 "t": "@"
1137 "t": "@"
1137 },
1138 },
1138 {
1139 {
1139 "l": "-foo\n",
1140 "l": "-foo\n",
1140 "n": 4,
1141 "n": 4,
1141 "t": "-"
1142 "t": "-"
1142 },
1143 },
1143 {
1144 {
1144 "l": "+bar\n",
1145 "l": "+bar\n",
1145 "n": 5,
1146 "n": 5,
1146 "t": "+"
1147 "t": "+"
1147 }
1148 }
1148 ]
1149 ]
1149 }
1150 }
1150 ],
1151 ],
1151 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1152 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1152 "parents": [
1153 "parents": [
1153 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1154 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1154 ],
1155 ],
1155 "path": "foo"
1156 "path": "foo"
1156 }
1157 }
1157
1158
1158 comparison/{revision}/{path} shows information about before and after for a file
1159 comparison/{revision}/{path} shows information about before and after for a file
1159
1160
1160 $ request json-comparison/f8bbb9024b10/foo
1161 $ request json-comparison/f8bbb9024b10/foo
1161 200 Script output follows
1162 200 Script output follows
1162
1163
1163 {
1164 {
1164 "author": "test",
1165 "author": "test",
1165 "children": [],
1166 "children": [],
1166 "comparison": [
1167 "comparison": [
1167 {
1168 {
1168 "lines": [
1169 "lines": [
1169 {
1170 {
1170 "ll": "foo",
1171 "ll": "foo",
1171 "ln": 1,
1172 "ln": 1,
1172 "rl": "bar",
1173 "rl": "bar",
1173 "rn": 1,
1174 "rn": 1,
1174 "t": "replace"
1175 "t": "replace"
1175 }
1176 }
1176 ]
1177 ]
1177 }
1178 }
1178 ],
1179 ],
1179 "date": [
1180 "date": [
1180 0.0,
1181 0.0,
1181 0
1182 0
1182 ],
1183 ],
1183 "desc": "modify foo",
1184 "desc": "modify foo",
1184 "leftnode": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
1185 "leftnode": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
1185 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1186 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1186 "parents": [
1187 "parents": [
1187 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1188 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1188 ],
1189 ],
1189 "path": "foo",
1190 "path": "foo",
1190 "rightnode": "f8bbb9024b10f93cdbb8d940337398291d40dea8"
1191 "rightnode": "f8bbb9024b10f93cdbb8d940337398291d40dea8"
1191 }
1192 }
1192
1193
1193 annotate/{revision}/{path} shows annotations for each line
1194 annotate/{revision}/{path} shows annotations for each line
1194
1195
1195 $ request json-annotate/f8bbb9024b10/foo
1196 $ request json-annotate/f8bbb9024b10/foo
1196 200 Script output follows
1197 200 Script output follows
1197
1198
1198 {
1199 {
1199 "abspath": "foo",
1200 "abspath": "foo",
1200 "annotate": [
1201 "annotate": [
1201 {
1202 {
1202 "abspath": "foo",
1203 "abspath": "foo",
1203 "author": "test",
1204 "author": "test",
1204 "desc": "modify foo",
1205 "desc": "modify foo",
1205 "line": "bar\n",
1206 "line": "bar\n",
1206 "lineno": 1,
1207 "lineno": 1,
1207 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1208 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1208 "revdate": [
1209 "revdate": [
1209 0.0,
1210 0.0,
1210 0
1211 0
1211 ],
1212 ],
1212 "targetline": 1
1213 "targetline": 1
1213 }
1214 }
1214 ],
1215 ],
1215 "author": "test",
1216 "author": "test",
1216 "children": [],
1217 "children": [],
1217 "date": [
1218 "date": [
1218 0.0,
1219 0.0,
1219 0
1220 0
1220 ],
1221 ],
1221 "desc": "modify foo",
1222 "desc": "modify foo",
1222 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1223 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1223 "parents": [
1224 "parents": [
1224 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1225 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1225 ],
1226 ],
1226 "permissions": ""
1227 "permissions": ""
1227 }
1228 }
1228
1229
1229 filelog/{revision}/{path} shows history of a single file
1230 filelog/{revision}/{path} shows history of a single file
1230
1231
1231 $ request json-filelog/f8bbb9024b10/foo
1232 $ request json-filelog/f8bbb9024b10/foo
1232 200 Script output follows
1233 200 Script output follows
1233
1234
1234 {
1235 {
1235 "entries": [
1236 "entries": [
1236 {
1237 {
1237 "bookmarks": [],
1238 "bookmarks": [],
1238 "branch": "default",
1239 "branch": "default",
1239 "date": [
1240 "date": [
1240 0.0,
1241 0.0,
1241 0
1242 0
1242 ],
1243 ],
1243 "desc": "modify foo",
1244 "desc": "modify foo",
1244 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1245 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
1245 "parents": [
1246 "parents": [
1246 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1247 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1247 ],
1248 ],
1248 "phase": "public",
1249 "phase": "public",
1249 "tags": [],
1250 "tags": [],
1250 "user": "test"
1251 "user": "test"
1251 },
1252 },
1252 {
1253 {
1253 "bookmarks": [],
1254 "bookmarks": [],
1254 "branch": "default",
1255 "branch": "default",
1255 "date": [
1256 "date": [
1256 0.0,
1257 0.0,
1257 0
1258 0
1258 ],
1259 ],
1259 "desc": "initial",
1260 "desc": "initial",
1260 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
1261 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
1261 "parents": [],
1262 "parents": [],
1262 "phase": "public",
1263 "phase": "public",
1263 "tags": [],
1264 "tags": [],
1264 "user": "test"
1265 "user": "test"
1265 }
1266 }
1266 ]
1267 ]
1267 }
1268 }
1268
1269
1269 $ request json-filelog/cc725e08502a/da/foo
1270 $ request json-filelog/cc725e08502a/da/foo
1270 200 Script output follows
1271 200 Script output follows
1271
1272
1272 {
1273 {
1273 "entries": [
1274 "entries": [
1274 {
1275 {
1275 "bookmarks": [],
1276 "bookmarks": [],
1276 "branch": "default",
1277 "branch": "default",
1277 "date": [
1278 "date": [
1278 0.0,
1279 0.0,
1279 0
1280 0
1280 ],
1281 ],
1281 "desc": "another commit to da/foo",
1282 "desc": "another commit to da/foo",
1282 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
1283 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
1283 "parents": [
1284 "parents": [
1284 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
1285 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
1285 ],
1286 ],
1286 "phase": "draft",
1287 "phase": "draft",
1287 "tags": [
1288 "tags": [
1288 "tag2"
1289 "tag2"
1289 ],
1290 ],
1290 "user": "test"
1291 "user": "test"
1291 },
1292 },
1292 {
1293 {
1293 "bookmarks": [
1294 "bookmarks": [
1294 "bookmark1"
1295 "bookmark1"
1295 ],
1296 ],
1296 "branch": "default",
1297 "branch": "default",
1297 "date": [
1298 "date": [
1298 0.0,
1299 0.0,
1299 0
1300 0
1300 ],
1301 ],
1301 "desc": "modify da/foo",
1302 "desc": "modify da/foo",
1302 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
1303 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
1303 "parents": [
1304 "parents": [
1304 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1305 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
1305 ],
1306 ],
1306 "phase": "public",
1307 "phase": "public",
1307 "tags": [],
1308 "tags": [],
1308 "user": "test"
1309 "user": "test"
1309 },
1310 },
1310 {
1311 {
1311 "bookmarks": [],
1312 "bookmarks": [],
1312 "branch": "default",
1313 "branch": "default",
1313 "date": [
1314 "date": [
1314 0.0,
1315 0.0,
1315 0
1316 0
1316 ],
1317 ],
1317 "desc": "initial",
1318 "desc": "initial",
1318 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
1319 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
1319 "parents": [],
1320 "parents": [],
1320 "phase": "public",
1321 "phase": "public",
1321 "tags": [],
1322 "tags": [],
1322 "user": "test"
1323 "user": "test"
1323 }
1324 }
1324 ]
1325 ]
1325 }
1326 }
1326
1327
1327 (archive/ doesn't use templating, so ignore it)
1328 (archive/ doesn't use templating, so ignore it)
1328
1329
1329 (static/ doesn't use templating, so ignore it)
1330 (static/ doesn't use templating, so ignore it)
1330
1331
1331 graph/ shows information that can be used to render a graph of the DAG
1332 graph/ shows information that can be used to render a graph of the DAG
1332
1333
1333 $ request json-graph
1334 $ request json-graph
1334 200 Script output follows
1335 200 Script output follows
1335
1336
1336 "not yet implemented"
1337 "not yet implemented"
1337
1338
1338 help/ shows help topics
1339 help/ shows help topics
1339
1340
1340 $ request json-help
1341 $ request json-help
1341 200 Script output follows
1342 200 Script output follows
1342
1343
1343 {
1344 {
1344 "earlycommands": [
1345 "earlycommands": [
1345 {
1346 {
1346 "summary": "add the specified files on the next commit",
1347 "summary": "add the specified files on the next commit",
1347 "topic": "add"
1348 "topic": "add"
1348 },
1349 },
1349 {
1350 {
1350 "summary": "show changeset information by line for each file",
1351 "summary": "show changeset information by line for each file",
1351 "topic": "annotate"
1352 "topic": "annotate"
1352 },
1353 },
1353 {
1354 {
1354 "summary": "make a copy of an existing repository",
1355 "summary": "make a copy of an existing repository",
1355 "topic": "clone"
1356 "topic": "clone"
1356 },
1357 },
1357 {
1358 {
1358 "summary": "commit the specified files or all outstanding changes",
1359 "summary": "commit the specified files or all outstanding changes",
1359 "topic": "commit"
1360 "topic": "commit"
1360 },
1361 },
1361 {
1362 {
1362 "summary": "diff repository (or selected files)",
1363 "summary": "diff repository (or selected files)",
1363 "topic": "diff"
1364 "topic": "diff"
1364 },
1365 },
1365 {
1366 {
1366 "summary": "dump the header and diffs for one or more changesets",
1367 "summary": "dump the header and diffs for one or more changesets",
1367 "topic": "export"
1368 "topic": "export"
1368 },
1369 },
1369 {
1370 {
1370 "summary": "forget the specified files on the next commit",
1371 "summary": "forget the specified files on the next commit",
1371 "topic": "forget"
1372 "topic": "forget"
1372 },
1373 },
1373 {
1374 {
1374 "summary": "create a new repository in the given directory",
1375 "summary": "create a new repository in the given directory",
1375 "topic": "init"
1376 "topic": "init"
1376 },
1377 },
1377 {
1378 {
1378 "summary": "show revision history of entire repository or files",
1379 "summary": "show revision history of entire repository or files",
1379 "topic": "log"
1380 "topic": "log"
1380 },
1381 },
1381 {
1382 {
1382 "summary": "merge another revision into working directory",
1383 "summary": "merge another revision into working directory",
1383 "topic": "merge"
1384 "topic": "merge"
1384 },
1385 },
1385 {
1386 {
1386 "summary": "pull changes from the specified source",
1387 "summary": "pull changes from the specified source",
1387 "topic": "pull"
1388 "topic": "pull"
1388 },
1389 },
1389 {
1390 {
1390 "summary": "push changes to the specified destination",
1391 "summary": "push changes to the specified destination",
1391 "topic": "push"
1392 "topic": "push"
1392 },
1393 },
1393 {
1394 {
1394 "summary": "remove the specified files on the next commit",
1395 "summary": "remove the specified files on the next commit",
1395 "topic": "remove"
1396 "topic": "remove"
1396 },
1397 },
1397 {
1398 {
1398 "summary": "start stand-alone webserver",
1399 "summary": "start stand-alone webserver",
1399 "topic": "serve"
1400 "topic": "serve"
1400 },
1401 },
1401 {
1402 {
1402 "summary": "show changed files in the working directory",
1403 "summary": "show changed files in the working directory",
1403 "topic": "status"
1404 "topic": "status"
1404 },
1405 },
1405 {
1406 {
1406 "summary": "summarize working directory state",
1407 "summary": "summarize working directory state",
1407 "topic": "summary"
1408 "topic": "summary"
1408 },
1409 },
1409 {
1410 {
1410 "summary": "update working directory (or switch revisions)",
1411 "summary": "update working directory (or switch revisions)",
1411 "topic": "update"
1412 "topic": "update"
1412 }
1413 }
1413 ],
1414 ],
1414 "othercommands": [
1415 "othercommands": [
1415 {
1416 {
1416 "summary": "add all new files, delete all missing files",
1417 "summary": "add all new files, delete all missing files",
1417 "topic": "addremove"
1418 "topic": "addremove"
1418 },
1419 },
1419 {
1420 {
1420 "summary": "create an unversioned archive of a repository revision",
1421 "summary": "create an unversioned archive of a repository revision",
1421 "topic": "archive"
1422 "topic": "archive"
1422 },
1423 },
1423 {
1424 {
1424 "summary": "reverse effect of earlier changeset",
1425 "summary": "reverse effect of earlier changeset",
1425 "topic": "backout"
1426 "topic": "backout"
1426 },
1427 },
1427 {
1428 {
1428 "summary": "subdivision search of changesets",
1429 "summary": "subdivision search of changesets",
1429 "topic": "bisect"
1430 "topic": "bisect"
1430 },
1431 },
1431 {
1432 {
1432 "summary": "create a new bookmark or list existing bookmarks",
1433 "summary": "create a new bookmark or list existing bookmarks",
1433 "topic": "bookmarks"
1434 "topic": "bookmarks"
1434 },
1435 },
1435 {
1436 {
1436 "summary": "set or show the current branch name",
1437 "summary": "set or show the current branch name",
1437 "topic": "branch"
1438 "topic": "branch"
1438 },
1439 },
1439 {
1440 {
1440 "summary": "list repository named branches",
1441 "summary": "list repository named branches",
1441 "topic": "branches"
1442 "topic": "branches"
1442 },
1443 },
1443 {
1444 {
1444 "summary": "create a changegroup file",
1445 "summary": "create a changegroup file",
1445 "topic": "bundle"
1446 "topic": "bundle"
1446 },
1447 },
1447 {
1448 {
1448 "summary": "output the current or given revision of files",
1449 "summary": "output the current or given revision of files",
1449 "topic": "cat"
1450 "topic": "cat"
1450 },
1451 },
1451 {
1452 {
1452 "summary": "show combined config settings from all hgrc files",
1453 "summary": "show combined config settings from all hgrc files",
1453 "topic": "config"
1454 "topic": "config"
1454 },
1455 },
1455 {
1456 {
1456 "summary": "mark files as copied for the next commit",
1457 "summary": "mark files as copied for the next commit",
1457 "topic": "copy"
1458 "topic": "copy"
1458 },
1459 },
1459 {
1460 {
1460 "summary": "list tracked files",
1461 "summary": "list tracked files",
1461 "topic": "files"
1462 "topic": "files"
1462 },
1463 },
1463 {
1464 {
1464 "summary": "copy changes from other branches onto the current branch",
1465 "summary": "copy changes from other branches onto the current branch",
1465 "topic": "graft"
1466 "topic": "graft"
1466 },
1467 },
1467 {
1468 {
1468 "summary": "search for a pattern in specified files and revisions",
1469 "summary": "search for a pattern in specified files and revisions",
1469 "topic": "grep"
1470 "topic": "grep"
1470 },
1471 },
1471 {
1472 {
1472 "summary": "show branch heads",
1473 "summary": "show branch heads",
1473 "topic": "heads"
1474 "topic": "heads"
1474 },
1475 },
1475 {
1476 {
1476 "summary": "show help for a given topic or a help overview",
1477 "summary": "show help for a given topic or a help overview",
1477 "topic": "help"
1478 "topic": "help"
1478 },
1479 },
1479 {
1480 {
1480 "summary": "identify the working directory or specified revision",
1481 "summary": "identify the working directory or specified revision",
1481 "topic": "identify"
1482 "topic": "identify"
1482 },
1483 },
1483 {
1484 {
1484 "summary": "import an ordered set of patches",
1485 "summary": "import an ordered set of patches",
1485 "topic": "import"
1486 "topic": "import"
1486 },
1487 },
1487 {
1488 {
1488 "summary": "show new changesets found in source",
1489 "summary": "show new changesets found in source",
1489 "topic": "incoming"
1490 "topic": "incoming"
1490 },
1491 },
1491 {
1492 {
1492 "summary": "output the current or given revision of the project manifest",
1493 "summary": "output the current or given revision of the project manifest",
1493 "topic": "manifest"
1494 "topic": "manifest"
1494 },
1495 },
1495 {
1496 {
1496 "summary": "show changesets not found in the destination",
1497 "summary": "show changesets not found in the destination",
1497 "topic": "outgoing"
1498 "topic": "outgoing"
1498 },
1499 },
1499 {
1500 {
1500 "summary": "show aliases for remote repositories",
1501 "summary": "show aliases for remote repositories",
1501 "topic": "paths"
1502 "topic": "paths"
1502 },
1503 },
1503 {
1504 {
1504 "summary": "set or show the current phase name",
1505 "summary": "set or show the current phase name",
1505 "topic": "phase"
1506 "topic": "phase"
1506 },
1507 },
1507 {
1508 {
1508 "summary": "roll back an interrupted transaction",
1509 "summary": "roll back an interrupted transaction",
1509 "topic": "recover"
1510 "topic": "recover"
1510 },
1511 },
1511 {
1512 {
1512 "summary": "rename files; equivalent of copy + remove",
1513 "summary": "rename files; equivalent of copy + remove",
1513 "topic": "rename"
1514 "topic": "rename"
1514 },
1515 },
1515 {
1516 {
1516 "summary": "redo merges or set/view the merge status of files",
1517 "summary": "redo merges or set/view the merge status of files",
1517 "topic": "resolve"
1518 "topic": "resolve"
1518 },
1519 },
1519 {
1520 {
1520 "summary": "restore files to their checkout state",
1521 "summary": "restore files to their checkout state",
1521 "topic": "revert"
1522 "topic": "revert"
1522 },
1523 },
1523 {
1524 {
1524 "summary": "print the root (top) of the current working directory",
1525 "summary": "print the root (top) of the current working directory",
1525 "topic": "root"
1526 "topic": "root"
1526 },
1527 },
1527 {
1528 {
1528 "summary": "add one or more tags for the current or given revision",
1529 "summary": "add one or more tags for the current or given revision",
1529 "topic": "tag"
1530 "topic": "tag"
1530 },
1531 },
1531 {
1532 {
1532 "summary": "list repository tags",
1533 "summary": "list repository tags",
1533 "topic": "tags"
1534 "topic": "tags"
1534 },
1535 },
1535 {
1536 {
1536 "summary": "apply one or more changegroup files",
1537 "summary": "apply one or more changegroup files",
1537 "topic": "unbundle"
1538 "topic": "unbundle"
1538 },
1539 },
1539 {
1540 {
1540 "summary": "verify the integrity of the repository",
1541 "summary": "verify the integrity of the repository",
1541 "topic": "verify"
1542 "topic": "verify"
1542 },
1543 },
1543 {
1544 {
1544 "summary": "output version and copyright information",
1545 "summary": "output version and copyright information",
1545 "topic": "version"
1546 "topic": "version"
1546 }
1547 }
1547 ],
1548 ],
1548 "topics": [
1549 "topics": [
1549 {
1550 {
1550 "summary": "Configuration Files",
1551 "summary": "Configuration Files",
1551 "topic": "config"
1552 "topic": "config"
1552 },
1553 },
1553 {
1554 {
1554 "summary": "Date Formats",
1555 "summary": "Date Formats",
1555 "topic": "dates"
1556 "topic": "dates"
1556 },
1557 },
1557 {
1558 {
1558 "summary": "Diff Formats",
1559 "summary": "Diff Formats",
1559 "topic": "diffs"
1560 "topic": "diffs"
1560 },
1561 },
1561 {
1562 {
1562 "summary": "Environment Variables",
1563 "summary": "Environment Variables",
1563 "topic": "environment"
1564 "topic": "environment"
1564 },
1565 },
1565 {
1566 {
1566 "summary": "Using Additional Features",
1567 "summary": "Using Additional Features",
1567 "topic": "extensions"
1568 "topic": "extensions"
1568 },
1569 },
1569 {
1570 {
1570 "summary": "Specifying File Sets",
1571 "summary": "Specifying File Sets",
1571 "topic": "filesets"
1572 "topic": "filesets"
1572 },
1573 },
1573 {
1574 {
1574 "summary": "Glossary",
1575 "summary": "Glossary",
1575 "topic": "glossary"
1576 "topic": "glossary"
1576 },
1577 },
1577 {
1578 {
1578 "summary": "Syntax for Mercurial Ignore Files",
1579 "summary": "Syntax for Mercurial Ignore Files",
1579 "topic": "hgignore"
1580 "topic": "hgignore"
1580 },
1581 },
1581 {
1582 {
1582 "summary": "Configuring hgweb",
1583 "summary": "Configuring hgweb",
1583 "topic": "hgweb"
1584 "topic": "hgweb"
1584 },
1585 },
1585 {
1586 {
1586 "summary": "Technical implementation topics",
1587 "summary": "Technical implementation topics",
1587 "topic": "internals"
1588 "topic": "internals"
1588 },
1589 },
1589 {
1590 {
1590 "summary": "Merge Tools",
1591 "summary": "Merge Tools",
1591 "topic": "merge-tools"
1592 "topic": "merge-tools"
1592 },
1593 },
1593 {
1594 {
1594 "summary": "Specifying Multiple Revisions",
1595 "summary": "Specifying Multiple Revisions",
1595 "topic": "multirevs"
1596 "topic": "multirevs"
1596 },
1597 },
1597 {
1598 {
1598 "summary": "File Name Patterns",
1599 "summary": "File Name Patterns",
1599 "topic": "patterns"
1600 "topic": "patterns"
1600 },
1601 },
1601 {
1602 {
1602 "summary": "Working with Phases",
1603 "summary": "Working with Phases",
1603 "topic": "phases"
1604 "topic": "phases"
1604 },
1605 },
1605 {
1606 {
1606 "summary": "Specifying Single Revisions",
1607 "summary": "Specifying Single Revisions",
1607 "topic": "revisions"
1608 "topic": "revisions"
1608 },
1609 },
1609 {
1610 {
1610 "summary": "Specifying Revision Sets",
1611 "summary": "Specifying Revision Sets",
1611 "topic": "revsets"
1612 "topic": "revsets"
1612 },
1613 },
1613 {
1614 {
1614 "summary": "Using Mercurial from scripts and automation",
1615 "summary": "Using Mercurial from scripts and automation",
1615 "topic": "scripting"
1616 "topic": "scripting"
1616 },
1617 },
1617 {
1618 {
1618 "summary": "Subrepositories",
1619 "summary": "Subrepositories",
1619 "topic": "subrepos"
1620 "topic": "subrepos"
1620 },
1621 },
1621 {
1622 {
1622 "summary": "Template Usage",
1623 "summary": "Template Usage",
1623 "topic": "templating"
1624 "topic": "templating"
1624 },
1625 },
1625 {
1626 {
1626 "summary": "URL Paths",
1627 "summary": "URL Paths",
1627 "topic": "urls"
1628 "topic": "urls"
1628 }
1629 }
1629 ]
1630 ]
1630 }
1631 }
1631
1632
1632 help/{topic} shows an individual help topic
1633 help/{topic} shows an individual help topic
1633
1634
1634 $ request json-help/phases
1635 $ request json-help/phases
1635 200 Script output follows
1636 200 Script output follows
1636
1637
1637 {
1638 {
1638 "rawdoc": "Working with Phases\n*", (glob)
1639 "rawdoc": "Working with Phases\n*", (glob)
1639 "topic": "phases"
1640 "topic": "phases"
1640 }
1641 }
General Comments 0
You need to be logged in to leave comments. Login now