changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > home / templates/json/map

changeset 53: d25f982fb8a6
author: Richard Westhaver <ellis@rwest.io>
date: Sat, 20 Jul 2024 22:31:54 -0400
permissions: -rw-r--r--
description: init vc
1 default = 'shortlog'
2 mimetype = 'application/json'
3 
4 filerevision = '\{
5  "node": {node|json},
6  "path": {file|json},
7  "date": {date|json},
8  "desc": {desc|utf8|json},
9  "branch": {if(branch, branch%changesetbranch, "default"|json)},
10  "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
11  "tags": [{join(tags%changelistentryname, ", ")}],
12  "user": {author|utf8|json},
13  "parents": [{join(parent%changesetparent, ", ")}],
14  "phase": {phase|json},
15  "lines": [{join(text%lineentry, ", ")}]
16  }'
17 lineentry = '\{
18  "line": {line|json}
19  }'
20 search = '\{
21  "node": {node|json},
22  "query": {query|json},
23  "entries": [{join(entries%changelistentry, ", ")}]
24  }'
25 # changelog and shortlog are the same web API but with different
26 # number of entries.
27 changelog = changelist.tmpl
28 shortlog = changelist.tmpl
29 graph = graph.tmpl
30 changelistentry = '\{
31  "node": {node|json},
32  "date": {date|json},
33  "desc": {desc|utf8|json},
34  "branch": {if(branch, branch%changesetbranch, "default"|json)},
35  "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
36  "tags": [{join(tags%changelistentryname, ", ")}],
37  "user": {author|utf8|json},
38  "phase": {phase|json},
39  "parents": [{if(allparents, join(allparents%changesetparent, ", "),
40  join(parent%changesetparent, ", "))}]
41  }'
42 graphentry = '\{
43  "node": {node|json},
44  "date": {date|json},
45  "desc": {desc|utf8|json},
46  "branch": {if(branch, branch%changesetbranch, "default"|json)},
47  "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
48  "tags": [{join(tags%changelistentryname, ", ")}],
49  "user": {author|utf8|json},
50  "phase": {phase|json},
51  "col": {col|json},
52  "row": {row|json},
53  "color": {color|json},
54  "edges": {edges|json},
55  "parents": [{if(allparents, join(allparents%changesetparent, ", "),
56  join(parent%changesetparent, ", "))}]
57  }'
58 changelistentryname = '{name|utf8|json}'
59 changeset = '\{
60  "node": {node|json},
61  "date": {date|json},
62  "desc": {desc|utf8|json},
63  "branch": {if(branch, branch%changesetbranch, "default"|json)},
64  "bookmarks": [{join(changesetbookmark, ", ")}],
65  "tags": [{join(changesettag, ", ")}],
66  "user": {author|utf8|json},
67  "parents": [{join(parent%changesetparent, ", ")}],
68  "children": [{join(child%changesetparent, ", ")}],
69  "files": [{join(files, ", ")}],
70  "diff": [{join(diff, ", ")}],
71  "phase": {phase|json}
72  }'
73 changesetbranch = '{name|utf8|json}'
74 changesetbookmark = '{bookmark|utf8|json}'
75 changesettag = '{tag|utf8|json}'
76 changesetparent = '{node|json}'
77 manifest = '\{
78  "node": {node|json},
79  "abspath": {path|json},
80  "directories": [{join(dentries%direntry, ", ")}],
81  "files": [{join(fentries%fileentry, ", ")}],
82  "bookmarks": [{join(bookmarks%name, ", ")}],
83  "tags": [{join(tags%name, ", ")}]
84  }'
85 name = '{name|utf8|json}'
86 direntry = '\{
87  "abspath": {path|json},
88  "basename": {basename|json},
89  "emptydirs": {emptydirs|json}
90  }'
91 fileentry = '\{
92  "abspath": {file|json},
93  "basename": {basename|json},
94  "date": {date|json},
95  "size": {size|json},
96  "flags": {permissions|json}
97  }'
98 tags = '\{
99  "node": {node|json},
100  "tags": [{join(entriesnotip%tagentry, ", ")}]
101  }'
102 tagentry = '\{
103  "tag": {tag|utf8|json},
104  "node": {node|json},
105  "date": {date|json}
106  }'
107 bookmarks = '\{
108  "node": {node|json},
109  "bookmarks": [{join(entries%bookmarkentry, ", ")}]
110  }'
111 bookmarkentry = '\{
112  "bookmark": {bookmark|utf8|json},
113  "node": {node|json},
114  "date": {date|json}
115  }'
116 branches = '\{
117  "branches": [{join(entries%branchentry, ", ")}]
118  }'
119 branchentry = '\{
120  "branch": {branch|utf8|json},
121  "node": {node|json},
122  "date": {date|json},
123  "status": {status|json}
124  }'
125 shortlogentry = '{changelistentry}'
126 summary = '\{
127  "node": {node|json},
128  "lastchange": {lastchange|json},
129  "bookmarks": [{join(bookmarks%bookmarkentry, ", ")}],
130  "branches": [{join(branches%branchentry, ", ")}],
131  "shortlog": [{join(shortlog%shortlogentry, ", ")}],
132  "tags": [{join(tags%tagentry, ", ")}],
133  "archives": [{join(archives%archiveentry, ", ")}],
134  "labels": {labels|json}
135  }'
136 archiveentry = '\{
137  "node": {node|json},
138  "extension": {extension|json},
139  "type": {type|json},
140  "url": {"{urlbase}{url}archive/{node}{extension}"|json}
141  }'
142 filediff = '\{
143  "path": {file|json},
144  "node": {node|json},
145  "date": {date|json},
146  "desc": {desc|utf8|json},
147  "author": {author|utf8|json},
148  "parents": [{join(parent%changesetparent, ", ")}],
149  "children": [{join(child%changesetparent, ", ")}],
150  "diff": [{join(diff, ", ")}]
151  }'
152 diffblock = '\{
153  "blockno": {blockno|json},
154  "lines": [{join(lines, ", ")}]
155  }'
156 difflineplus = '\{
157  "t": "+",
158  "n": {lineno|json},
159  "l": {line|json}
160  }'
161 difflineminus = '\{
162  "t": "-",
163  "n": {lineno|json},
164  "l": {line|json}
165  }'
166 difflineat = '\{
167  "t": "@",
168  "n": {lineno|json},
169  "l": {line|json}
170  }'
171 diffline = '\{
172  "t": "",
173  "n": {lineno|json},
174  "l": {line|json}
175  }'
176 filecomparison = '\{
177  "path": {file|json},
178  "node": {node|json},
179  "date": {date|json},
180  "desc": {desc|utf8|json},
181  "author": {author|utf8|json},
182  "parents": [{join(parent%changesetparent, ", ")}],
183  "children": [{join(child%changesetparent, ", ")}],
184  "leftnode": {leftnode|json},
185  "rightnode": {rightnode|json},
186  "comparison": [{join(comparison, ", ")}]
187  }'
188 comparisonblock = '\{
189  "lines": [{join(lines, ", ")}]
190  }'
191 comparisonline = '\{
192  "t": {type|json},
193  "ln": {leftlineno|json},
194  "ll": {leftline|json},
195  "rn": {rightlineno|json},
196  "rl": {rightline|json}
197  }'
198 fileannotate = '\{
199  "abspath": {file|json},
200  "node": {node|json},
201  "author": {author|utf8|json},
202  "date": {date|json},
203  "desc": {desc|utf8|json},
204  "parents": [{join(parent%changesetparent, ", ")}],
205  "children": [{join(child%changesetparent, ", ")}],
206  "permissions": {permissions|json},
207  "annotate": [{join(annotate%fileannotation, ", ")}]
208  }'
209 fileannotation = '\{
210  "node": {node|json},
211  "author": {author|utf8|json},
212  "desc": {desc|utf8|json},
213  "abspath": {file|json},
214  "targetline": {targetline|json},
215  "line": {line|json},
216  "lineno": {lineno|json},
217  "revdate": {revdate|json}
218  }'
219 filelog = '\{
220  "entries": [{join(entries%changelistentry, ", ")}]
221  }'
222 helptopics = '\{
223  "topics": [{join(topics%helptopicentry, ", ")}],
224  "earlycommands": [{join(earlycommands%helptopicentry, ", ")}],
225  "othercommands": [{join(othercommands%helptopicentry, ", ")}]
226  }'
227 helptopicentry = '\{
228  "topic": {topic|utf8|json},
229  "summary": {summary|utf8|json}
230  }'
231 help = '\{
232  "topic": {topic|utf8|json},
233  "rawdoc": {doc|utf8|json}
234  }'
235 filenodelink = '\{
236  "file": {file|json},
237  "status": {status|json}
238  }'
239 filenolink = '{filenodelink}'
240 index = '\{
241  "entries": [{join(entries%indexentry, ", ")}]
242  }'
243 indexentry = '\{
244  "name": {name|utf8|json},
245  "description": {description|utf8|json},
246  "contact": {contact|utf8|json},
247  "lastchange": {lastchange|json},
248  "labels": {labels|json}
249  }'
250 error = '\{
251  "error": {error|utf8|json}
252  }'