##// END OF EJS Templates
templates: add support for filelog webcommand in json style...
Laura Médioni -
r29380:c1b526f5 default
parent child Browse files
Show More
@@ -1,184 +1,189
1 mimetype = 'application/json'
1 mimetype = 'application/json'
2 filerevision = '"not yet implemented"'
2 filerevision = '"not yet implemented"'
3 search = '"not yet implemented"'
3 search = '"not yet implemented"'
4 # changelog and shortlog are the same web API but with different
4 # changelog and shortlog are the same web API but with different
5 # number of entries.
5 # number of entries.
6 changelog = changelist.tmpl
6 changelog = changelist.tmpl
7 shortlog = changelist.tmpl
7 shortlog = changelist.tmpl
8 changelistentry = '\{
8 changelistentry = '\{
9 "node": {node|json},
9 "node": {node|json},
10 "date": {date|json},
10 "date": {date|json},
11 "desc": {desc|utf8|json},
11 "desc": {desc|utf8|json},
12 "branch": {if(branch, branch%changesetbranch, "default"|json)},
12 "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
13 "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
13 "tags": [{join(tags%changelistentryname, ", ")}],
14 "tags": [{join(tags%changelistentryname, ", ")}],
14 "user": {author|utf8|json},
15 "user": {author|utf8|json},
15 "parents": [{join(allparents%changesetparent, ", ")}]
16 "phase": {phase|json},
17 "parents": [{if(allparents, join(allparents%changesetparent, ", "),
18 join(parent%changesetparent, ", "))}]
16 }'
19 }'
17 changelistentryname = '{name|utf8|json}'
20 changelistentryname = '{name|utf8|json}'
18 changeset = '\{
21 changeset = '\{
19 "node": {node|json},
22 "node": {node|json},
20 "date": {date|json},
23 "date": {date|json},
21 "desc": {desc|utf8|json},
24 "desc": {desc|utf8|json},
22 "branch": {if(branch, branch%changesetbranch, "default"|json)},
25 "branch": {if(branch, branch%changesetbranch, "default"|json)},
23 "bookmarks": [{join(changesetbookmark, ", ")}],
26 "bookmarks": [{join(changesetbookmark, ", ")}],
24 "tags": [{join(changesettag, ", ")}],
27 "tags": [{join(changesettag, ", ")}],
25 "user": {author|utf8|json},
28 "user": {author|utf8|json},
26 "parents": [{join(parent%changesetparent, ", ")}],
29 "parents": [{join(parent%changesetparent, ", ")}],
27 "phase": {phase|json}
30 "phase": {phase|json}
28 }'
31 }'
29 changesetbranch = '{name|utf8|json}'
32 changesetbranch = '{name|utf8|json}'
30 changesetbookmark = '{bookmark|utf8|json}'
33 changesetbookmark = '{bookmark|utf8|json}'
31 changesettag = '{tag|utf8|json}'
34 changesettag = '{tag|utf8|json}'
32 changesetparent = '{node|json}'
35 changesetparent = '{node|json}'
33 manifest = '\{
36 manifest = '\{
34 "node": {node|json},
37 "node": {node|json},
35 "abspath": {path|json},
38 "abspath": {path|json},
36 "directories": [{join(dentries%direntry, ", ")}],
39 "directories": [{join(dentries%direntry, ", ")}],
37 "files": [{join(fentries%fileentry, ", ")}],
40 "files": [{join(fentries%fileentry, ", ")}],
38 "bookmarks": [{join(bookmarks%name, ", ")}],
41 "bookmarks": [{join(bookmarks%name, ", ")}],
39 "tags": [{join(tags%name, ", ")}]
42 "tags": [{join(tags%name, ", ")}]
40 }'
43 }'
41 name = '{name|utf8|json}'
44 name = '{name|utf8|json}'
42 direntry = '\{
45 direntry = '\{
43 "abspath": {path|json},
46 "abspath": {path|json},
44 "basename": {basename|json},
47 "basename": {basename|json},
45 "emptydirs": {emptydirs|json}
48 "emptydirs": {emptydirs|json}
46 }'
49 }'
47 fileentry = '\{
50 fileentry = '\{
48 "abspath": {file|json},
51 "abspath": {file|json},
49 "basename": {basename|json},
52 "basename": {basename|json},
50 "date": {date|json},
53 "date": {date|json},
51 "size": {size|json},
54 "size": {size|json},
52 "flags": {permissions|json}
55 "flags": {permissions|json}
53 }'
56 }'
54 tags = '\{
57 tags = '\{
55 "node": {node|json},
58 "node": {node|json},
56 "tags": [{join(entriesnotip%tagentry, ", ")}]
59 "tags": [{join(entriesnotip%tagentry, ", ")}]
57 }'
60 }'
58 tagentry = '\{
61 tagentry = '\{
59 "tag": {tag|utf8|json},
62 "tag": {tag|utf8|json},
60 "node": {node|json},
63 "node": {node|json},
61 "date": {date|json}
64 "date": {date|json}
62 }'
65 }'
63 bookmarks = '\{
66 bookmarks = '\{
64 "node": {node|json},
67 "node": {node|json},
65 "bookmarks": [{join(entries%bookmarkentry, ", ")}]
68 "bookmarks": [{join(entries%bookmarkentry, ", ")}]
66 }'
69 }'
67 bookmarkentry = '\{
70 bookmarkentry = '\{
68 "bookmark": {bookmark|utf8|json},
71 "bookmark": {bookmark|utf8|json},
69 "node": {node|json},
72 "node": {node|json},
70 "date": {date|json}
73 "date": {date|json}
71 }'
74 }'
72 branches = '\{
75 branches = '\{
73 "branches": [{join(entries%branchentry, ", ")}]
76 "branches": [{join(entries%branchentry, ", ")}]
74 }'
77 }'
75 branchentry = '\{
78 branchentry = '\{
76 "branch": {branch|utf8|json},
79 "branch": {branch|utf8|json},
77 "node": {node|json},
80 "node": {node|json},
78 "date": {date|json},
81 "date": {date|json},
79 "status": {status|json}
82 "status": {status|json}
80 }'
83 }'
81 summary = '"not yet implemented"'
84 summary = '"not yet implemented"'
82 filediff = '\{
85 filediff = '\{
83 "path": {file|json},
86 "path": {file|json},
84 "node": {node|json},
87 "node": {node|json},
85 "date": {date|json},
88 "date": {date|json},
86 "desc": {desc|utf8|json},
89 "desc": {desc|utf8|json},
87 "author": {author|utf8|json},
90 "author": {author|utf8|json},
88 "parents": [{join(parent%changesetparent, ", ")}],
91 "parents": [{join(parent%changesetparent, ", ")}],
89 "children": [{join(child%changesetparent, ", ")}],
92 "children": [{join(child%changesetparent, ", ")}],
90 "diff": [{join(diff%diffblock, ", ")}]
93 "diff": [{join(diff%diffblock, ", ")}]
91 }'
94 }'
92 diffblock = '\{
95 diffblock = '\{
93 "blockno": {blockno|json},
96 "blockno": {blockno|json},
94 "lines": [{join(lines, ", ")}]
97 "lines": [{join(lines, ", ")}]
95 }'
98 }'
96 difflineplus = '\{
99 difflineplus = '\{
97 "t": "+",
100 "t": "+",
98 "n": {lineno|json},
101 "n": {lineno|json},
99 "l": {line|json}
102 "l": {line|json}
100 }'
103 }'
101 difflineminus = '\{
104 difflineminus = '\{
102 "t": "-",
105 "t": "-",
103 "n": {lineno|json},
106 "n": {lineno|json},
104 "l": {line|json}
107 "l": {line|json}
105 }'
108 }'
106 difflineat = '\{
109 difflineat = '\{
107 "t": "@",
110 "t": "@",
108 "n": {lineno|json},
111 "n": {lineno|json},
109 "l": {line|json}
112 "l": {line|json}
110 }'
113 }'
111 diffline = '\{
114 diffline = '\{
112 "t": "",
115 "t": "",
113 "n": {lineno|json},
116 "n": {lineno|json},
114 "l": {line|json}
117 "l": {line|json}
115 }'
118 }'
116 filecomparison = '\{
119 filecomparison = '\{
117 "path": {file|json},
120 "path": {file|json},
118 "node": {node|json},
121 "node": {node|json},
119 "date": {date|json},
122 "date": {date|json},
120 "desc": {desc|utf8|json},
123 "desc": {desc|utf8|json},
121 "author": {author|utf8|json},
124 "author": {author|utf8|json},
122 "parents": [{join(parent%changesetparent, ", ")}],
125 "parents": [{join(parent%changesetparent, ", ")}],
123 "children": [{join(child%changesetparent, ", ")}],
126 "children": [{join(child%changesetparent, ", ")}],
124 "leftnode": {leftnode|json},
127 "leftnode": {leftnode|json},
125 "rightnode": {rightnode|json},
128 "rightnode": {rightnode|json},
126 "comparison": [{join(comparison, ", ")}]
129 "comparison": [{join(comparison, ", ")}]
127 }'
130 }'
128 comparisonblock = '\{
131 comparisonblock = '\{
129 "lines": [{join(lines, ", ")}]
132 "lines": [{join(lines, ", ")}]
130 }'
133 }'
131 comparisonline = '\{
134 comparisonline = '\{
132 "t": {type|json},
135 "t": {type|json},
133 "ln": {leftlineno|json},
136 "ln": {leftlineno|json},
134 "ll": {leftline|json},
137 "ll": {leftline|json},
135 "rn": {rightlineno|json},
138 "rn": {rightlineno|json},
136 "rl": {rightline|json}
139 "rl": {rightline|json}
137 }'
140 }'
138 fileannotate = '\{
141 fileannotate = '\{
139 "abspath": {file|json},
142 "abspath": {file|json},
140 "node": {node|json},
143 "node": {node|json},
141 "author": {author|utf8|json},
144 "author": {author|utf8|json},
142 "date": {date|json},
145 "date": {date|json},
143 "desc": {desc|utf8|json},
146 "desc": {desc|utf8|json},
144 "parents": [{join(parent%changesetparent, ", ")}],
147 "parents": [{join(parent%changesetparent, ", ")}],
145 "children": [{join(child%changesetparent, ", ")}],
148 "children": [{join(child%changesetparent, ", ")}],
146 "permissions": {permissions|json},
149 "permissions": {permissions|json},
147 "annotate": [{join(annotate%fileannotation, ", ")}]
150 "annotate": [{join(annotate%fileannotation, ", ")}]
148 }'
151 }'
149 fileannotation = '\{
152 fileannotation = '\{
150 "node": {node|json},
153 "node": {node|json},
151 "author": {author|utf8|json},
154 "author": {author|utf8|json},
152 "desc": {desc|utf8|json},
155 "desc": {desc|utf8|json},
153 "abspath": {file|json},
156 "abspath": {file|json},
154 "targetline": {targetline|json},
157 "targetline": {targetline|json},
155 "line": {line|json},
158 "line": {line|json},
156 "lineno": {lineno|json},
159 "lineno": {lineno|json},
157 "revdate": {revdate|json}
160 "revdate": {revdate|json}
158 }'
161 }'
159 filelog = '"not yet implemented"'
162 filelog = '\{
163 "entries": [{join(entries%changelistentry, ", ")}]
164 }'
160 graph = '"not yet implemented"'
165 graph = '"not yet implemented"'
161 helptopics = '\{
166 helptopics = '\{
162 "topics": [{join(topics%helptopicentry, ", ")}],
167 "topics": [{join(topics%helptopicentry, ", ")}],
163 "earlycommands": [{join(earlycommands%helptopicentry, ", ")}],
168 "earlycommands": [{join(earlycommands%helptopicentry, ", ")}],
164 "othercommands": [{join(othercommands%helptopicentry, ", ")}]
169 "othercommands": [{join(othercommands%helptopicentry, ", ")}]
165 }'
170 }'
166 helptopicentry = '\{
171 helptopicentry = '\{
167 "topic": {topic|utf8|json},
172 "topic": {topic|utf8|json},
168 "summary": {summary|utf8|json}
173 "summary": {summary|utf8|json}
169 }'
174 }'
170 help = '\{
175 help = '\{
171 "topic": {topic|utf8|json},
176 "topic": {topic|utf8|json},
172 "rawdoc": {doc|utf8|json}
177 "rawdoc": {doc|utf8|json}
173 }'
178 }'
174 filenodelink = ''
179 filenodelink = ''
175 filenolink = ''
180 filenolink = ''
176 index = '\{
181 index = '\{
177 "entries": [{join(entries%indexentry, ", ")}]
182 "entries": [{join(entries%indexentry, ", ")}]
178 }'
183 }'
179 indexentry = '\{
184 indexentry = '\{
180 "name": {name|utf8|json},
185 "name": {name|utf8|json},
181 "description": {description|utf8|json},
186 "description": {description|utf8|json},
182 "contact": {contact|utf8|json},
187 "contact": {contact|utf8|json},
183 "lastchange": {lastchange|json}
188 "lastchange": {lastchange|json}
184 }'
189 }'
@@ -1,1180 +1,1315
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 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E error.log
103 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E error.log
104 $ cat hg.pid >> $DAEMON_PIDS
104 $ cat hg.pid >> $DAEMON_PIDS
105
105
106 (Try to keep these in roughly the order they are defined in webcommands.py)
106 (Try to keep these in roughly the order they are defined in webcommands.py)
107
107
108 (log is handled by filelog/ and changelog/ - ignore it)
108 (log is handled by filelog/ and changelog/ - ignore it)
109
109
110 (rawfile/ doesn't use templating - nothing to test)
110 (rawfile/ doesn't use templating - nothing to test)
111
111
112 file/{revision}/{path} shows file revision
112 file/{revision}/{path} shows file revision
113
113
114 $ request json-file/06e557f3edf6/foo
114 $ request json-file/06e557f3edf6/foo
115 200 Script output follows
115 200 Script output follows
116
116
117 "not yet implemented"
117 "not yet implemented"
118
118
119 file/{revision} shows root directory info
119 file/{revision} shows root directory info
120
120
121 $ request json-file/cc725e08502a
121 $ request json-file/cc725e08502a
122 200 Script output follows
122 200 Script output follows
123
123
124 {
124 {
125 "abspath": "/",
125 "abspath": "/",
126 "bookmarks": [],
126 "bookmarks": [],
127 "directories": [
127 "directories": [
128 {
128 {
129 "abspath": "/da",
129 "abspath": "/da",
130 "basename": "da",
130 "basename": "da",
131 "emptydirs": ""
131 "emptydirs": ""
132 }
132 }
133 ],
133 ],
134 "files": [
134 "files": [
135 {
135 {
136 "abspath": ".hgtags",
136 "abspath": ".hgtags",
137 "basename": ".hgtags",
137 "basename": ".hgtags",
138 "date": [
138 "date": [
139 0.0,
139 0.0,
140 0
140 0
141 ],
141 ],
142 "flags": "",
142 "flags": "",
143 "size": 92
143 "size": 92
144 },
144 },
145 {
145 {
146 "abspath": "foo-new",
146 "abspath": "foo-new",
147 "basename": "foo-new",
147 "basename": "foo-new",
148 "date": [
148 "date": [
149 0.0,
149 0.0,
150 0
150 0
151 ],
151 ],
152 "flags": "",
152 "flags": "",
153 "size": 4
153 "size": 4
154 }
154 }
155 ],
155 ],
156 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
156 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
157 "tags": [
157 "tags": [
158 "tip"
158 "tip"
159 ]
159 ]
160 }
160 }
161
161
162 changelog/ shows information about several changesets
162 changelog/ shows information about several changesets
163
163
164 $ request json-changelog
164 $ request json-changelog
165 200 Script output follows
165 200 Script output follows
166
166
167 {
167 {
168 "changeset_count": 10,
168 "changeset_count": 10,
169 "changesets": [
169 "changesets": [
170 {
170 {
171 "bookmarks": [],
171 "bookmarks": [],
172 "branch": "default",
172 "date": [
173 "date": [
173 0.0,
174 0.0,
174 0
175 0
175 ],
176 ],
176 "desc": "merge test-branch into default",
177 "desc": "merge test-branch into default",
177 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
178 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
178 "parents": [
179 "parents": [
179 "ceed296fe500c3fac9541e31dad860cb49c89e45",
180 "ceed296fe500c3fac9541e31dad860cb49c89e45",
180 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
181 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
181 ],
182 ],
183 "phase": "draft",
182 "tags": [
184 "tags": [
183 "tip"
185 "tip"
184 ],
186 ],
185 "user": "test"
187 "user": "test"
186 },
188 },
187 {
189 {
188 "bookmarks": [],
190 "bookmarks": [],
191 "branch": "test-branch",
189 "date": [
192 "date": [
190 0.0,
193 0.0,
191 0
194 0
192 ],
195 ],
193 "desc": "another commit in test-branch",
196 "desc": "another commit in test-branch",
194 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
197 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
195 "parents": [
198 "parents": [
196 "6ab967a8ab3489227a83f80e920faa039a71819f"
199 "6ab967a8ab3489227a83f80e920faa039a71819f"
197 ],
200 ],
201 "phase": "draft",
198 "tags": [],
202 "tags": [],
199 "user": "test"
203 "user": "test"
200 },
204 },
201 {
205 {
202 "bookmarks": [],
206 "bookmarks": [],
207 "branch": "test-branch",
203 "date": [
208 "date": [
204 0.0,
209 0.0,
205 0
210 0
206 ],
211 ],
207 "desc": "create test branch",
212 "desc": "create test branch",
208 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
213 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
209 "parents": [
214 "parents": [
210 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
215 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
211 ],
216 ],
217 "phase": "draft",
212 "tags": [],
218 "tags": [],
213 "user": "test"
219 "user": "test"
214 },
220 },
215 {
221 {
216 "bookmarks": [
222 "bookmarks": [
217 "bookmark2"
223 "bookmark2"
218 ],
224 ],
225 "branch": "default",
219 "date": [
226 "date": [
220 0.0,
227 0.0,
221 0
228 0
222 ],
229 ],
223 "desc": "create tag2",
230 "desc": "create tag2",
224 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
231 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
225 "parents": [
232 "parents": [
226 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
233 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
227 ],
234 ],
235 "phase": "draft",
228 "tags": [],
236 "tags": [],
229 "user": "test"
237 "user": "test"
230 },
238 },
231 {
239 {
232 "bookmarks": [],
240 "bookmarks": [],
241 "branch": "default",
233 "date": [
242 "date": [
234 0.0,
243 0.0,
235 0
244 0
236 ],
245 ],
237 "desc": "another commit to da/foo",
246 "desc": "another commit to da/foo",
238 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
247 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
239 "parents": [
248 "parents": [
240 "93a8ce14f89156426b7fa981af8042da53f03aa0"
249 "93a8ce14f89156426b7fa981af8042da53f03aa0"
241 ],
250 ],
251 "phase": "draft",
242 "tags": [
252 "tags": [
243 "tag2"
253 "tag2"
244 ],
254 ],
245 "user": "test"
255 "user": "test"
246 },
256 },
247 {
257 {
248 "bookmarks": [],
258 "bookmarks": [],
259 "branch": "default",
249 "date": [
260 "date": [
250 0.0,
261 0.0,
251 0
262 0
252 ],
263 ],
253 "desc": "create tag",
264 "desc": "create tag",
254 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
265 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
255 "parents": [
266 "parents": [
256 "78896eb0e102174ce9278438a95e12543e4367a7"
267 "78896eb0e102174ce9278438a95e12543e4367a7"
257 ],
268 ],
269 "phase": "public",
258 "tags": [],
270 "tags": [],
259 "user": "test"
271 "user": "test"
260 },
272 },
261 {
273 {
262 "bookmarks": [],
274 "bookmarks": [],
275 "branch": "default",
263 "date": [
276 "date": [
264 0.0,
277 0.0,
265 0
278 0
266 ],
279 ],
267 "desc": "move foo",
280 "desc": "move foo",
268 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
281 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
269 "parents": [
282 "parents": [
270 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
283 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
271 ],
284 ],
285 "phase": "public",
272 "tags": [
286 "tags": [
273 "tag1"
287 "tag1"
274 ],
288 ],
275 "user": "test"
289 "user": "test"
276 },
290 },
277 {
291 {
278 "bookmarks": [
292 "bookmarks": [
279 "bookmark1"
293 "bookmark1"
280 ],
294 ],
295 "branch": "default",
281 "date": [
296 "date": [
282 0.0,
297 0.0,
283 0
298 0
284 ],
299 ],
285 "desc": "modify da/foo",
300 "desc": "modify da/foo",
286 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
301 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
287 "parents": [
302 "parents": [
288 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
303 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
289 ],
304 ],
305 "phase": "public",
290 "tags": [],
306 "tags": [],
291 "user": "test"
307 "user": "test"
292 },
308 },
293 {
309 {
294 "bookmarks": [],
310 "bookmarks": [],
311 "branch": "default",
295 "date": [
312 "date": [
296 0.0,
313 0.0,
297 0
314 0
298 ],
315 ],
299 "desc": "modify foo",
316 "desc": "modify foo",
300 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
317 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
301 "parents": [
318 "parents": [
302 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
319 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
303 ],
320 ],
321 "phase": "public",
304 "tags": [],
322 "tags": [],
305 "user": "test"
323 "user": "test"
306 },
324 },
307 {
325 {
308 "bookmarks": [],
326 "bookmarks": [],
327 "branch": "default",
309 "date": [
328 "date": [
310 0.0,
329 0.0,
311 0
330 0
312 ],
331 ],
313 "desc": "initial",
332 "desc": "initial",
314 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
333 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
315 "parents": [],
334 "parents": [],
335 "phase": "public",
316 "tags": [],
336 "tags": [],
317 "user": "test"
337 "user": "test"
318 }
338 }
319 ],
339 ],
320 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"
340 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"
321 }
341 }
322
342
323 changelog/{revision} shows information starting at a specific changeset
343 changelog/{revision} shows information starting at a specific changeset
324
344
325 $ request json-changelog/f8bbb9024b10
345 $ request json-changelog/f8bbb9024b10
326 200 Script output follows
346 200 Script output follows
327
347
328 {
348 {
329 "changeset_count": 10,
349 "changeset_count": 10,
330 "changesets": [
350 "changesets": [
331 {
351 {
332 "bookmarks": [],
352 "bookmarks": [],
353 "branch": "default",
333 "date": [
354 "date": [
334 0.0,
355 0.0,
335 0
356 0
336 ],
357 ],
337 "desc": "modify foo",
358 "desc": "modify foo",
338 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
359 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
339 "parents": [
360 "parents": [
340 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
361 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
341 ],
362 ],
363 "phase": "public",
342 "tags": [],
364 "tags": [],
343 "user": "test"
365 "user": "test"
344 },
366 },
345 {
367 {
346 "bookmarks": [],
368 "bookmarks": [],
369 "branch": "default",
347 "date": [
370 "date": [
348 0.0,
371 0.0,
349 0
372 0
350 ],
373 ],
351 "desc": "initial",
374 "desc": "initial",
352 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
375 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
353 "parents": [],
376 "parents": [],
377 "phase": "public",
354 "tags": [],
378 "tags": [],
355 "user": "test"
379 "user": "test"
356 }
380 }
357 ],
381 ],
358 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8"
382 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8"
359 }
383 }
360
384
361 shortlog/ shows information about a set of changesets
385 shortlog/ shows information about a set of changesets
362
386
363 $ request json-shortlog
387 $ request json-shortlog
364 200 Script output follows
388 200 Script output follows
365
389
366 {
390 {
367 "changeset_count": 10,
391 "changeset_count": 10,
368 "changesets": [
392 "changesets": [
369 {
393 {
370 "bookmarks": [],
394 "bookmarks": [],
395 "branch": "default",
371 "date": [
396 "date": [
372 0.0,
397 0.0,
373 0
398 0
374 ],
399 ],
375 "desc": "merge test-branch into default",
400 "desc": "merge test-branch into default",
376 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
401 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
377 "parents": [
402 "parents": [
378 "ceed296fe500c3fac9541e31dad860cb49c89e45",
403 "ceed296fe500c3fac9541e31dad860cb49c89e45",
379 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
404 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
380 ],
405 ],
406 "phase": "draft",
381 "tags": [
407 "tags": [
382 "tip"
408 "tip"
383 ],
409 ],
384 "user": "test"
410 "user": "test"
385 },
411 },
386 {
412 {
387 "bookmarks": [],
413 "bookmarks": [],
414 "branch": "test-branch",
388 "date": [
415 "date": [
389 0.0,
416 0.0,
390 0
417 0
391 ],
418 ],
392 "desc": "another commit in test-branch",
419 "desc": "another commit in test-branch",
393 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
420 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
394 "parents": [
421 "parents": [
395 "6ab967a8ab3489227a83f80e920faa039a71819f"
422 "6ab967a8ab3489227a83f80e920faa039a71819f"
396 ],
423 ],
424 "phase": "draft",
397 "tags": [],
425 "tags": [],
398 "user": "test"
426 "user": "test"
399 },
427 },
400 {
428 {
401 "bookmarks": [],
429 "bookmarks": [],
430 "branch": "test-branch",
402 "date": [
431 "date": [
403 0.0,
432 0.0,
404 0
433 0
405 ],
434 ],
406 "desc": "create test branch",
435 "desc": "create test branch",
407 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
436 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
408 "parents": [
437 "parents": [
409 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
438 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
410 ],
439 ],
440 "phase": "draft",
411 "tags": [],
441 "tags": [],
412 "user": "test"
442 "user": "test"
413 },
443 },
414 {
444 {
415 "bookmarks": [
445 "bookmarks": [
416 "bookmark2"
446 "bookmark2"
417 ],
447 ],
448 "branch": "default",
418 "date": [
449 "date": [
419 0.0,
450 0.0,
420 0
451 0
421 ],
452 ],
422 "desc": "create tag2",
453 "desc": "create tag2",
423 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
454 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
424 "parents": [
455 "parents": [
425 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
456 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
426 ],
457 ],
458 "phase": "draft",
427 "tags": [],
459 "tags": [],
428 "user": "test"
460 "user": "test"
429 },
461 },
430 {
462 {
431 "bookmarks": [],
463 "bookmarks": [],
464 "branch": "default",
432 "date": [
465 "date": [
433 0.0,
466 0.0,
434 0
467 0
435 ],
468 ],
436 "desc": "another commit to da/foo",
469 "desc": "another commit to da/foo",
437 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
470 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
438 "parents": [
471 "parents": [
439 "93a8ce14f89156426b7fa981af8042da53f03aa0"
472 "93a8ce14f89156426b7fa981af8042da53f03aa0"
440 ],
473 ],
474 "phase": "draft",
441 "tags": [
475 "tags": [
442 "tag2"
476 "tag2"
443 ],
477 ],
444 "user": "test"
478 "user": "test"
445 },
479 },
446 {
480 {
447 "bookmarks": [],
481 "bookmarks": [],
482 "branch": "default",
448 "date": [
483 "date": [
449 0.0,
484 0.0,
450 0
485 0
451 ],
486 ],
452 "desc": "create tag",
487 "desc": "create tag",
453 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
488 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
454 "parents": [
489 "parents": [
455 "78896eb0e102174ce9278438a95e12543e4367a7"
490 "78896eb0e102174ce9278438a95e12543e4367a7"
456 ],
491 ],
492 "phase": "public",
457 "tags": [],
493 "tags": [],
458 "user": "test"
494 "user": "test"
459 },
495 },
460 {
496 {
461 "bookmarks": [],
497 "bookmarks": [],
498 "branch": "default",
462 "date": [
499 "date": [
463 0.0,
500 0.0,
464 0
501 0
465 ],
502 ],
466 "desc": "move foo",
503 "desc": "move foo",
467 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
504 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
468 "parents": [
505 "parents": [
469 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
506 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
470 ],
507 ],
508 "phase": "public",
471 "tags": [
509 "tags": [
472 "tag1"
510 "tag1"
473 ],
511 ],
474 "user": "test"
512 "user": "test"
475 },
513 },
476 {
514 {
477 "bookmarks": [
515 "bookmarks": [
478 "bookmark1"
516 "bookmark1"
479 ],
517 ],
518 "branch": "default",
480 "date": [
519 "date": [
481 0.0,
520 0.0,
482 0
521 0
483 ],
522 ],
484 "desc": "modify da/foo",
523 "desc": "modify da/foo",
485 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
524 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
486 "parents": [
525 "parents": [
487 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
526 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
488 ],
527 ],
528 "phase": "public",
489 "tags": [],
529 "tags": [],
490 "user": "test"
530 "user": "test"
491 },
531 },
492 {
532 {
493 "bookmarks": [],
533 "bookmarks": [],
534 "branch": "default",
494 "date": [
535 "date": [
495 0.0,
536 0.0,
496 0
537 0
497 ],
538 ],
498 "desc": "modify foo",
539 "desc": "modify foo",
499 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
540 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
500 "parents": [
541 "parents": [
501 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
542 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
502 ],
543 ],
544 "phase": "public",
503 "tags": [],
545 "tags": [],
504 "user": "test"
546 "user": "test"
505 },
547 },
506 {
548 {
507 "bookmarks": [],
549 "bookmarks": [],
550 "branch": "default",
508 "date": [
551 "date": [
509 0.0,
552 0.0,
510 0
553 0
511 ],
554 ],
512 "desc": "initial",
555 "desc": "initial",
513 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
556 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
514 "parents": [],
557 "parents": [],
558 "phase": "public",
515 "tags": [],
559 "tags": [],
516 "user": "test"
560 "user": "test"
517 }
561 }
518 ],
562 ],
519 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"
563 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"
520 }
564 }
521
565
522 changeset/ renders the tip changeset
566 changeset/ renders the tip changeset
523
567
524 $ request json-rev
568 $ request json-rev
525 200 Script output follows
569 200 Script output follows
526
570
527 {
571 {
528 "bookmarks": [],
572 "bookmarks": [],
529 "branch": "default",
573 "branch": "default",
530 "date": [
574 "date": [
531 0.0,
575 0.0,
532 0
576 0
533 ],
577 ],
534 "desc": "merge test-branch into default",
578 "desc": "merge test-branch into default",
535 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
579 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
536 "parents": [
580 "parents": [
537 "ceed296fe500c3fac9541e31dad860cb49c89e45",
581 "ceed296fe500c3fac9541e31dad860cb49c89e45",
538 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
582 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
539 ],
583 ],
540 "phase": "draft",
584 "phase": "draft",
541 "tags": [
585 "tags": [
542 "tip"
586 "tip"
543 ],
587 ],
544 "user": "test"
588 "user": "test"
545 }
589 }
546
590
547 changeset/{revision} shows tags
591 changeset/{revision} shows tags
548
592
549 $ request json-rev/78896eb0e102
593 $ request json-rev/78896eb0e102
550 200 Script output follows
594 200 Script output follows
551
595
552 {
596 {
553 "bookmarks": [],
597 "bookmarks": [],
554 "branch": "default",
598 "branch": "default",
555 "date": [
599 "date": [
556 0.0,
600 0.0,
557 0
601 0
558 ],
602 ],
559 "desc": "move foo",
603 "desc": "move foo",
560 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
604 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
561 "parents": [
605 "parents": [
562 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
606 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
563 ],
607 ],
564 "phase": "public",
608 "phase": "public",
565 "tags": [
609 "tags": [
566 "tag1"
610 "tag1"
567 ],
611 ],
568 "user": "test"
612 "user": "test"
569 }
613 }
570
614
571 changeset/{revision} shows bookmarks
615 changeset/{revision} shows bookmarks
572
616
573 $ request json-rev/8d7c456572ac
617 $ request json-rev/8d7c456572ac
574 200 Script output follows
618 200 Script output follows
575
619
576 {
620 {
577 "bookmarks": [
621 "bookmarks": [
578 "bookmark1"
622 "bookmark1"
579 ],
623 ],
580 "branch": "default",
624 "branch": "default",
581 "date": [
625 "date": [
582 0.0,
626 0.0,
583 0
627 0
584 ],
628 ],
585 "desc": "modify da/foo",
629 "desc": "modify da/foo",
586 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
630 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
587 "parents": [
631 "parents": [
588 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
632 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
589 ],
633 ],
590 "phase": "public",
634 "phase": "public",
591 "tags": [],
635 "tags": [],
592 "user": "test"
636 "user": "test"
593 }
637 }
594
638
595 changeset/{revision} shows branches
639 changeset/{revision} shows branches
596
640
597 $ request json-rev/6ab967a8ab34
641 $ request json-rev/6ab967a8ab34
598 200 Script output follows
642 200 Script output follows
599
643
600 {
644 {
601 "bookmarks": [],
645 "bookmarks": [],
602 "branch": "test-branch",
646 "branch": "test-branch",
603 "date": [
647 "date": [
604 0.0,
648 0.0,
605 0
649 0
606 ],
650 ],
607 "desc": "create test branch",
651 "desc": "create test branch",
608 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
652 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
609 "parents": [
653 "parents": [
610 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
654 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
611 ],
655 ],
612 "phase": "draft",
656 "phase": "draft",
613 "tags": [],
657 "tags": [],
614 "user": "test"
658 "user": "test"
615 }
659 }
616
660
617 manifest/{revision}/{path} shows info about a directory at a revision
661 manifest/{revision}/{path} shows info about a directory at a revision
618
662
619 $ request json-manifest/06e557f3edf6/
663 $ request json-manifest/06e557f3edf6/
620 200 Script output follows
664 200 Script output follows
621
665
622 {
666 {
623 "abspath": "/",
667 "abspath": "/",
624 "bookmarks": [],
668 "bookmarks": [],
625 "directories": [
669 "directories": [
626 {
670 {
627 "abspath": "/da",
671 "abspath": "/da",
628 "basename": "da",
672 "basename": "da",
629 "emptydirs": ""
673 "emptydirs": ""
630 }
674 }
631 ],
675 ],
632 "files": [
676 "files": [
633 {
677 {
634 "abspath": "foo",
678 "abspath": "foo",
635 "basename": "foo",
679 "basename": "foo",
636 "date": [
680 "date": [
637 0.0,
681 0.0,
638 0
682 0
639 ],
683 ],
640 "flags": "",
684 "flags": "",
641 "size": 4
685 "size": 4
642 }
686 }
643 ],
687 ],
644 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
688 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
645 "tags": []
689 "tags": []
646 }
690 }
647
691
648 tags/ shows tags info
692 tags/ shows tags info
649
693
650 $ request json-tags
694 $ request json-tags
651 200 Script output follows
695 200 Script output follows
652
696
653 {
697 {
654 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
698 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
655 "tags": [
699 "tags": [
656 {
700 {
657 "date": [
701 "date": [
658 0.0,
702 0.0,
659 0
703 0
660 ],
704 ],
661 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
705 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
662 "tag": "tag2"
706 "tag": "tag2"
663 },
707 },
664 {
708 {
665 "date": [
709 "date": [
666 0.0,
710 0.0,
667 0
711 0
668 ],
712 ],
669 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
713 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
670 "tag": "tag1"
714 "tag": "tag1"
671 }
715 }
672 ]
716 ]
673 }
717 }
674
718
675 bookmarks/ shows bookmarks info
719 bookmarks/ shows bookmarks info
676
720
677 $ request json-bookmarks
721 $ request json-bookmarks
678 200 Script output follows
722 200 Script output follows
679
723
680 {
724 {
681 "bookmarks": [
725 "bookmarks": [
682 {
726 {
683 "bookmark": "bookmark2",
727 "bookmark": "bookmark2",
684 "date": [
728 "date": [
685 0.0,
729 0.0,
686 0
730 0
687 ],
731 ],
688 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
732 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
689 },
733 },
690 {
734 {
691 "bookmark": "bookmark1",
735 "bookmark": "bookmark1",
692 "date": [
736 "date": [
693 0.0,
737 0.0,
694 0
738 0
695 ],
739 ],
696 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5"
740 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5"
697 }
741 }
698 ],
742 ],
699 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"
743 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"
700 }
744 }
701
745
702 branches/ shows branches info
746 branches/ shows branches info
703
747
704 $ request json-branches
748 $ request json-branches
705 200 Script output follows
749 200 Script output follows
706
750
707 {
751 {
708 "branches": [
752 "branches": [
709 {
753 {
710 "branch": "default",
754 "branch": "default",
711 "date": [
755 "date": [
712 0.0,
756 0.0,
713 0
757 0
714 ],
758 ],
715 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
759 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
716 "status": "open"
760 "status": "open"
717 },
761 },
718 {
762 {
719 "branch": "test-branch",
763 "branch": "test-branch",
720 "date": [
764 "date": [
721 0.0,
765 0.0,
722 0
766 0
723 ],
767 ],
724 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
768 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
725 "status": "inactive"
769 "status": "inactive"
726 }
770 }
727 ]
771 ]
728 }
772 }
729
773
730 summary/ shows a summary of repository state
774 summary/ shows a summary of repository state
731
775
732 $ request json-summary
776 $ request json-summary
733 200 Script output follows
777 200 Script output follows
734
778
735 "not yet implemented"
779 "not yet implemented"
736
780
737 filediff/{revision}/{path} shows changes to a file in a revision
781 filediff/{revision}/{path} shows changes to a file in a revision
738
782
739 $ request json-diff/f8bbb9024b10/foo
783 $ request json-diff/f8bbb9024b10/foo
740 200 Script output follows
784 200 Script output follows
741
785
742 {
786 {
743 "author": "test",
787 "author": "test",
744 "children": [],
788 "children": [],
745 "date": [
789 "date": [
746 0.0,
790 0.0,
747 0
791 0
748 ],
792 ],
749 "desc": "modify foo",
793 "desc": "modify foo",
750 "diff": [
794 "diff": [
751 {
795 {
752 "blockno": 1,
796 "blockno": 1,
753 "lines": [
797 "lines": [
754 {
798 {
755 "l": "--- a/foo\tThu Jan 01 00:00:00 1970 +0000\n",
799 "l": "--- a/foo\tThu Jan 01 00:00:00 1970 +0000\n",
756 "n": 1,
800 "n": 1,
757 "t": "-"
801 "t": "-"
758 },
802 },
759 {
803 {
760 "l": "+++ b/foo\tThu Jan 01 00:00:00 1970 +0000\n",
804 "l": "+++ b/foo\tThu Jan 01 00:00:00 1970 +0000\n",
761 "n": 2,
805 "n": 2,
762 "t": "+"
806 "t": "+"
763 },
807 },
764 {
808 {
765 "l": "@@ -1,1 +1,1 @@\n",
809 "l": "@@ -1,1 +1,1 @@\n",
766 "n": 3,
810 "n": 3,
767 "t": "@"
811 "t": "@"
768 },
812 },
769 {
813 {
770 "l": "-foo\n",
814 "l": "-foo\n",
771 "n": 4,
815 "n": 4,
772 "t": "-"
816 "t": "-"
773 },
817 },
774 {
818 {
775 "l": "+bar\n",
819 "l": "+bar\n",
776 "n": 5,
820 "n": 5,
777 "t": "+"
821 "t": "+"
778 }
822 }
779 ]
823 ]
780 }
824 }
781 ],
825 ],
782 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
826 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
783 "parents": [
827 "parents": [
784 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
828 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
785 ],
829 ],
786 "path": "foo"
830 "path": "foo"
787 }
831 }
788
832
789 comparison/{revision}/{path} shows information about before and after for a file
833 comparison/{revision}/{path} shows information about before and after for a file
790
834
791 $ request json-comparison/f8bbb9024b10/foo
835 $ request json-comparison/f8bbb9024b10/foo
792 200 Script output follows
836 200 Script output follows
793
837
794 {
838 {
795 "author": "test",
839 "author": "test",
796 "children": [],
840 "children": [],
797 "comparison": [
841 "comparison": [
798 {
842 {
799 "lines": [
843 "lines": [
800 {
844 {
801 "ll": "foo",
845 "ll": "foo",
802 "ln": 1,
846 "ln": 1,
803 "rl": "bar",
847 "rl": "bar",
804 "rn": 1,
848 "rn": 1,
805 "t": "replace"
849 "t": "replace"
806 }
850 }
807 ]
851 ]
808 }
852 }
809 ],
853 ],
810 "date": [
854 "date": [
811 0.0,
855 0.0,
812 0
856 0
813 ],
857 ],
814 "desc": "modify foo",
858 "desc": "modify foo",
815 "leftnode": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
859 "leftnode": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
816 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
860 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
817 "parents": [
861 "parents": [
818 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
862 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
819 ],
863 ],
820 "path": "foo",
864 "path": "foo",
821 "rightnode": "f8bbb9024b10f93cdbb8d940337398291d40dea8"
865 "rightnode": "f8bbb9024b10f93cdbb8d940337398291d40dea8"
822 }
866 }
823
867
824 annotate/{revision}/{path} shows annotations for each line
868 annotate/{revision}/{path} shows annotations for each line
825
869
826 $ request json-annotate/f8bbb9024b10/foo
870 $ request json-annotate/f8bbb9024b10/foo
827 200 Script output follows
871 200 Script output follows
828
872
829 {
873 {
830 "abspath": "foo",
874 "abspath": "foo",
831 "annotate": [
875 "annotate": [
832 {
876 {
833 "abspath": "foo",
877 "abspath": "foo",
834 "author": "test",
878 "author": "test",
835 "desc": "modify foo",
879 "desc": "modify foo",
836 "line": "bar\n",
880 "line": "bar\n",
837 "lineno": 1,
881 "lineno": 1,
838 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
882 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
839 "revdate": [
883 "revdate": [
840 0.0,
884 0.0,
841 0
885 0
842 ],
886 ],
843 "targetline": 1
887 "targetline": 1
844 }
888 }
845 ],
889 ],
846 "author": "test",
890 "author": "test",
847 "children": [],
891 "children": [],
848 "date": [
892 "date": [
849 0.0,
893 0.0,
850 0
894 0
851 ],
895 ],
852 "desc": "modify foo",
896 "desc": "modify foo",
853 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
897 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
854 "parents": [
898 "parents": [
855 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
899 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
856 ],
900 ],
857 "permissions": ""
901 "permissions": ""
858 }
902 }
859
903
860 filelog/{revision}/{path} shows history of a single file
904 filelog/{revision}/{path} shows history of a single file
861
905
862 $ request json-filelog/f8bbb9024b10/foo
906 $ request json-filelog/f8bbb9024b10/foo
863 200 Script output follows
907 200 Script output follows
864
908
865 "not yet implemented"
909 {
910 "entries": [
911 {
912 "bookmarks": [],
913 "branch": "default",
914 "date": [
915 0.0,
916 0
917 ],
918 "desc": "modify foo",
919 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
920 "parents": [
921 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
922 ],
923 "phase": "public",
924 "tags": [],
925 "user": "test"
926 },
927 {
928 "bookmarks": [],
929 "branch": "default",
930 "date": [
931 0.0,
932 0
933 ],
934 "desc": "initial",
935 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
936 "parents": [],
937 "phase": "public",
938 "tags": [],
939 "user": "test"
940 }
941 ]
942 }
943
944 $ request json-filelog/cc725e08502a/da/foo
945 200 Script output follows
946
947 {
948 "entries": [
949 {
950 "bookmarks": [],
951 "branch": "default",
952 "date": [
953 0.0,
954 0
955 ],
956 "desc": "another commit to da/foo",
957 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
958 "parents": [
959 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
960 ],
961 "phase": "draft",
962 "tags": [
963 "tag2"
964 ],
965 "user": "test"
966 },
967 {
968 "bookmarks": [
969 "bookmark1"
970 ],
971 "branch": "default",
972 "date": [
973 0.0,
974 0
975 ],
976 "desc": "modify da/foo",
977 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
978 "parents": [
979 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
980 ],
981 "phase": "public",
982 "tags": [],
983 "user": "test"
984 },
985 {
986 "bookmarks": [],
987 "branch": "default",
988 "date": [
989 0.0,
990 0
991 ],
992 "desc": "initial",
993 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
994 "parents": [],
995 "phase": "public",
996 "tags": [],
997 "user": "test"
998 }
999 ]
1000 }
866
1001
867 (archive/ doesn't use templating, so ignore it)
1002 (archive/ doesn't use templating, so ignore it)
868
1003
869 (static/ doesn't use templating, so ignore it)
1004 (static/ doesn't use templating, so ignore it)
870
1005
871 graph/ shows information that can be used to render a graph of the DAG
1006 graph/ shows information that can be used to render a graph of the DAG
872
1007
873 $ request json-graph
1008 $ request json-graph
874 200 Script output follows
1009 200 Script output follows
875
1010
876 "not yet implemented"
1011 "not yet implemented"
877
1012
878 help/ shows help topics
1013 help/ shows help topics
879
1014
880 $ request json-help
1015 $ request json-help
881 200 Script output follows
1016 200 Script output follows
882
1017
883 {
1018 {
884 "earlycommands": [
1019 "earlycommands": [
885 {
1020 {
886 "summary": "add the specified files on the next commit",
1021 "summary": "add the specified files on the next commit",
887 "topic": "add"
1022 "topic": "add"
888 },
1023 },
889 {
1024 {
890 "summary": "show changeset information by line for each file",
1025 "summary": "show changeset information by line for each file",
891 "topic": "annotate"
1026 "topic": "annotate"
892 },
1027 },
893 {
1028 {
894 "summary": "make a copy of an existing repository",
1029 "summary": "make a copy of an existing repository",
895 "topic": "clone"
1030 "topic": "clone"
896 },
1031 },
897 {
1032 {
898 "summary": "commit the specified files or all outstanding changes",
1033 "summary": "commit the specified files or all outstanding changes",
899 "topic": "commit"
1034 "topic": "commit"
900 },
1035 },
901 {
1036 {
902 "summary": "diff repository (or selected files)",
1037 "summary": "diff repository (or selected files)",
903 "topic": "diff"
1038 "topic": "diff"
904 },
1039 },
905 {
1040 {
906 "summary": "dump the header and diffs for one or more changesets",
1041 "summary": "dump the header and diffs for one or more changesets",
907 "topic": "export"
1042 "topic": "export"
908 },
1043 },
909 {
1044 {
910 "summary": "forget the specified files on the next commit",
1045 "summary": "forget the specified files on the next commit",
911 "topic": "forget"
1046 "topic": "forget"
912 },
1047 },
913 {
1048 {
914 "summary": "create a new repository in the given directory",
1049 "summary": "create a new repository in the given directory",
915 "topic": "init"
1050 "topic": "init"
916 },
1051 },
917 {
1052 {
918 "summary": "show revision history of entire repository or files",
1053 "summary": "show revision history of entire repository or files",
919 "topic": "log"
1054 "topic": "log"
920 },
1055 },
921 {
1056 {
922 "summary": "merge another revision into working directory",
1057 "summary": "merge another revision into working directory",
923 "topic": "merge"
1058 "topic": "merge"
924 },
1059 },
925 {
1060 {
926 "summary": "pull changes from the specified source",
1061 "summary": "pull changes from the specified source",
927 "topic": "pull"
1062 "topic": "pull"
928 },
1063 },
929 {
1064 {
930 "summary": "push changes to the specified destination",
1065 "summary": "push changes to the specified destination",
931 "topic": "push"
1066 "topic": "push"
932 },
1067 },
933 {
1068 {
934 "summary": "remove the specified files on the next commit",
1069 "summary": "remove the specified files on the next commit",
935 "topic": "remove"
1070 "topic": "remove"
936 },
1071 },
937 {
1072 {
938 "summary": "start stand-alone webserver",
1073 "summary": "start stand-alone webserver",
939 "topic": "serve"
1074 "topic": "serve"
940 },
1075 },
941 {
1076 {
942 "summary": "show changed files in the working directory",
1077 "summary": "show changed files in the working directory",
943 "topic": "status"
1078 "topic": "status"
944 },
1079 },
945 {
1080 {
946 "summary": "summarize working directory state",
1081 "summary": "summarize working directory state",
947 "topic": "summary"
1082 "topic": "summary"
948 },
1083 },
949 {
1084 {
950 "summary": "update working directory (or switch revisions)",
1085 "summary": "update working directory (or switch revisions)",
951 "topic": "update"
1086 "topic": "update"
952 }
1087 }
953 ],
1088 ],
954 "othercommands": [
1089 "othercommands": [
955 {
1090 {
956 "summary": "add all new files, delete all missing files",
1091 "summary": "add all new files, delete all missing files",
957 "topic": "addremove"
1092 "topic": "addremove"
958 },
1093 },
959 {
1094 {
960 "summary": "create an unversioned archive of a repository revision",
1095 "summary": "create an unversioned archive of a repository revision",
961 "topic": "archive"
1096 "topic": "archive"
962 },
1097 },
963 {
1098 {
964 "summary": "reverse effect of earlier changeset",
1099 "summary": "reverse effect of earlier changeset",
965 "topic": "backout"
1100 "topic": "backout"
966 },
1101 },
967 {
1102 {
968 "summary": "subdivision search of changesets",
1103 "summary": "subdivision search of changesets",
969 "topic": "bisect"
1104 "topic": "bisect"
970 },
1105 },
971 {
1106 {
972 "summary": "create a new bookmark or list existing bookmarks",
1107 "summary": "create a new bookmark or list existing bookmarks",
973 "topic": "bookmarks"
1108 "topic": "bookmarks"
974 },
1109 },
975 {
1110 {
976 "summary": "set or show the current branch name",
1111 "summary": "set or show the current branch name",
977 "topic": "branch"
1112 "topic": "branch"
978 },
1113 },
979 {
1114 {
980 "summary": "list repository named branches",
1115 "summary": "list repository named branches",
981 "topic": "branches"
1116 "topic": "branches"
982 },
1117 },
983 {
1118 {
984 "summary": "create a changegroup file",
1119 "summary": "create a changegroup file",
985 "topic": "bundle"
1120 "topic": "bundle"
986 },
1121 },
987 {
1122 {
988 "summary": "output the current or given revision of files",
1123 "summary": "output the current or given revision of files",
989 "topic": "cat"
1124 "topic": "cat"
990 },
1125 },
991 {
1126 {
992 "summary": "show combined config settings from all hgrc files",
1127 "summary": "show combined config settings from all hgrc files",
993 "topic": "config"
1128 "topic": "config"
994 },
1129 },
995 {
1130 {
996 "summary": "mark files as copied for the next commit",
1131 "summary": "mark files as copied for the next commit",
997 "topic": "copy"
1132 "topic": "copy"
998 },
1133 },
999 {
1134 {
1000 "summary": "list tracked files",
1135 "summary": "list tracked files",
1001 "topic": "files"
1136 "topic": "files"
1002 },
1137 },
1003 {
1138 {
1004 "summary": "copy changes from other branches onto the current branch",
1139 "summary": "copy changes from other branches onto the current branch",
1005 "topic": "graft"
1140 "topic": "graft"
1006 },
1141 },
1007 {
1142 {
1008 "summary": "search for a pattern in specified files and revisions",
1143 "summary": "search for a pattern in specified files and revisions",
1009 "topic": "grep"
1144 "topic": "grep"
1010 },
1145 },
1011 {
1146 {
1012 "summary": "show branch heads",
1147 "summary": "show branch heads",
1013 "topic": "heads"
1148 "topic": "heads"
1014 },
1149 },
1015 {
1150 {
1016 "summary": "show help for a given topic or a help overview",
1151 "summary": "show help for a given topic or a help overview",
1017 "topic": "help"
1152 "topic": "help"
1018 },
1153 },
1019 {
1154 {
1020 "summary": "identify the working directory or specified revision",
1155 "summary": "identify the working directory or specified revision",
1021 "topic": "identify"
1156 "topic": "identify"
1022 },
1157 },
1023 {
1158 {
1024 "summary": "import an ordered set of patches",
1159 "summary": "import an ordered set of patches",
1025 "topic": "import"
1160 "topic": "import"
1026 },
1161 },
1027 {
1162 {
1028 "summary": "show new changesets found in source",
1163 "summary": "show new changesets found in source",
1029 "topic": "incoming"
1164 "topic": "incoming"
1030 },
1165 },
1031 {
1166 {
1032 "summary": "output the current or given revision of the project manifest",
1167 "summary": "output the current or given revision of the project manifest",
1033 "topic": "manifest"
1168 "topic": "manifest"
1034 },
1169 },
1035 {
1170 {
1036 "summary": "show changesets not found in the destination",
1171 "summary": "show changesets not found in the destination",
1037 "topic": "outgoing"
1172 "topic": "outgoing"
1038 },
1173 },
1039 {
1174 {
1040 "summary": "show aliases for remote repositories",
1175 "summary": "show aliases for remote repositories",
1041 "topic": "paths"
1176 "topic": "paths"
1042 },
1177 },
1043 {
1178 {
1044 "summary": "set or show the current phase name",
1179 "summary": "set or show the current phase name",
1045 "topic": "phase"
1180 "topic": "phase"
1046 },
1181 },
1047 {
1182 {
1048 "summary": "roll back an interrupted transaction",
1183 "summary": "roll back an interrupted transaction",
1049 "topic": "recover"
1184 "topic": "recover"
1050 },
1185 },
1051 {
1186 {
1052 "summary": "rename files; equivalent of copy + remove",
1187 "summary": "rename files; equivalent of copy + remove",
1053 "topic": "rename"
1188 "topic": "rename"
1054 },
1189 },
1055 {
1190 {
1056 "summary": "redo merges or set/view the merge status of files",
1191 "summary": "redo merges or set/view the merge status of files",
1057 "topic": "resolve"
1192 "topic": "resolve"
1058 },
1193 },
1059 {
1194 {
1060 "summary": "restore files to their checkout state",
1195 "summary": "restore files to their checkout state",
1061 "topic": "revert"
1196 "topic": "revert"
1062 },
1197 },
1063 {
1198 {
1064 "summary": "print the root (top) of the current working directory",
1199 "summary": "print the root (top) of the current working directory",
1065 "topic": "root"
1200 "topic": "root"
1066 },
1201 },
1067 {
1202 {
1068 "summary": "add one or more tags for the current or given revision",
1203 "summary": "add one or more tags for the current or given revision",
1069 "topic": "tag"
1204 "topic": "tag"
1070 },
1205 },
1071 {
1206 {
1072 "summary": "list repository tags",
1207 "summary": "list repository tags",
1073 "topic": "tags"
1208 "topic": "tags"
1074 },
1209 },
1075 {
1210 {
1076 "summary": "apply one or more changegroup files",
1211 "summary": "apply one or more changegroup files",
1077 "topic": "unbundle"
1212 "topic": "unbundle"
1078 },
1213 },
1079 {
1214 {
1080 "summary": "verify the integrity of the repository",
1215 "summary": "verify the integrity of the repository",
1081 "topic": "verify"
1216 "topic": "verify"
1082 },
1217 },
1083 {
1218 {
1084 "summary": "output version and copyright information",
1219 "summary": "output version and copyright information",
1085 "topic": "version"
1220 "topic": "version"
1086 }
1221 }
1087 ],
1222 ],
1088 "topics": [
1223 "topics": [
1089 {
1224 {
1090 "summary": "Configuration Files",
1225 "summary": "Configuration Files",
1091 "topic": "config"
1226 "topic": "config"
1092 },
1227 },
1093 {
1228 {
1094 "summary": "Date Formats",
1229 "summary": "Date Formats",
1095 "topic": "dates"
1230 "topic": "dates"
1096 },
1231 },
1097 {
1232 {
1098 "summary": "Diff Formats",
1233 "summary": "Diff Formats",
1099 "topic": "diffs"
1234 "topic": "diffs"
1100 },
1235 },
1101 {
1236 {
1102 "summary": "Environment Variables",
1237 "summary": "Environment Variables",
1103 "topic": "environment"
1238 "topic": "environment"
1104 },
1239 },
1105 {
1240 {
1106 "summary": "Using Additional Features",
1241 "summary": "Using Additional Features",
1107 "topic": "extensions"
1242 "topic": "extensions"
1108 },
1243 },
1109 {
1244 {
1110 "summary": "Specifying File Sets",
1245 "summary": "Specifying File Sets",
1111 "topic": "filesets"
1246 "topic": "filesets"
1112 },
1247 },
1113 {
1248 {
1114 "summary": "Glossary",
1249 "summary": "Glossary",
1115 "topic": "glossary"
1250 "topic": "glossary"
1116 },
1251 },
1117 {
1252 {
1118 "summary": "Syntax for Mercurial Ignore Files",
1253 "summary": "Syntax for Mercurial Ignore Files",
1119 "topic": "hgignore"
1254 "topic": "hgignore"
1120 },
1255 },
1121 {
1256 {
1122 "summary": "Configuring hgweb",
1257 "summary": "Configuring hgweb",
1123 "topic": "hgweb"
1258 "topic": "hgweb"
1124 },
1259 },
1125 {
1260 {
1126 "summary": "Technical implementation topics",
1261 "summary": "Technical implementation topics",
1127 "topic": "internals"
1262 "topic": "internals"
1128 },
1263 },
1129 {
1264 {
1130 "summary": "Merge Tools",
1265 "summary": "Merge Tools",
1131 "topic": "merge-tools"
1266 "topic": "merge-tools"
1132 },
1267 },
1133 {
1268 {
1134 "summary": "Specifying Multiple Revisions",
1269 "summary": "Specifying Multiple Revisions",
1135 "topic": "multirevs"
1270 "topic": "multirevs"
1136 },
1271 },
1137 {
1272 {
1138 "summary": "File Name Patterns",
1273 "summary": "File Name Patterns",
1139 "topic": "patterns"
1274 "topic": "patterns"
1140 },
1275 },
1141 {
1276 {
1142 "summary": "Working with Phases",
1277 "summary": "Working with Phases",
1143 "topic": "phases"
1278 "topic": "phases"
1144 },
1279 },
1145 {
1280 {
1146 "summary": "Specifying Single Revisions",
1281 "summary": "Specifying Single Revisions",
1147 "topic": "revisions"
1282 "topic": "revisions"
1148 },
1283 },
1149 {
1284 {
1150 "summary": "Specifying Revision Sets",
1285 "summary": "Specifying Revision Sets",
1151 "topic": "revsets"
1286 "topic": "revsets"
1152 },
1287 },
1153 {
1288 {
1154 "summary": "Using Mercurial from scripts and automation",
1289 "summary": "Using Mercurial from scripts and automation",
1155 "topic": "scripting"
1290 "topic": "scripting"
1156 },
1291 },
1157 {
1292 {
1158 "summary": "Subrepositories",
1293 "summary": "Subrepositories",
1159 "topic": "subrepos"
1294 "topic": "subrepos"
1160 },
1295 },
1161 {
1296 {
1162 "summary": "Template Usage",
1297 "summary": "Template Usage",
1163 "topic": "templating"
1298 "topic": "templating"
1164 },
1299 },
1165 {
1300 {
1166 "summary": "URL Paths",
1301 "summary": "URL Paths",
1167 "topic": "urls"
1302 "topic": "urls"
1168 }
1303 }
1169 ]
1304 ]
1170 }
1305 }
1171
1306
1172 help/{topic} shows an individual help topic
1307 help/{topic} shows an individual help topic
1173
1308
1174 $ request json-help/phases
1309 $ request json-help/phases
1175 200 Script output follows
1310 200 Script output follows
1176
1311
1177 {
1312 {
1178 "rawdoc": "Working with Phases\n*", (glob)
1313 "rawdoc": "Working with Phases\n*", (glob)
1179 "topic": "phases"
1314 "topic": "phases"
1180 }
1315 }
General Comments 0
You need to be logged in to leave comments. Login now