map
223 lines
| 5.9 KiB
| text/plain
|
TextLexer
|
r24544 | mimetype = 'application/json' | ||
|
r29381 | filerevision = '\{ | ||
"node": {node|json}, | ||||
"path": {file|json}, | ||||
"date": {date|json}, | ||||
"desc": {desc|utf8|json}, | ||||
"branch": {if(branch, branch%changesetbranch, "default"|json)}, | ||||
"bookmarks": [{join(bookmarks%changelistentryname, ", ")}], | ||||
"tags": [{join(tags%changelistentryname, ", ")}], | ||||
"user": {author|utf8|json}, | ||||
"parents": [{join(parent%changesetparent, ", ")}], | ||||
"phase": {phase|json}, | ||||
"lines": [{join(text%lineentry, ", ")}] | ||||
}' | ||||
lineentry = '\{ | ||||
"line": {line|json} | ||||
}' | ||||
|
r29383 | search = '\{ | ||
"node": {node|json}, | ||||
"query": {query|json}, | ||||
"entries": [{join(entries%searchentry, ", ")}] | ||||
}' | ||||
searchentry = '{changelistentry}' | ||||
|
r24588 | # changelog and shortlog are the same web API but with different | ||
# number of entries. | ||||
changelog = changelist.tmpl | ||||
shortlog = changelist.tmpl | ||||
changelistentry = '\{ | ||||
"node": {node|json}, | ||||
"date": {date|json}, | ||||
|
r28212 | "desc": {desc|utf8|json}, | ||
|
r29380 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, | ||
|
r24588 | "bookmarks": [{join(bookmarks%changelistentryname, ", ")}], | ||
"tags": [{join(tags%changelistentryname, ", ")}], | ||||
r28709 | "user": {author|utf8|json}, | |||
|
r29380 | "phase": {phase|json}, | ||
"parents": [{if(allparents, join(allparents%changesetparent, ", "), | ||||
join(parent%changesetparent, ", "))}] | ||||
|
r24588 | }' | ||
|
r28212 | changelistentryname = '{name|utf8|json}' | ||
|
r24563 | changeset = '\{ | ||
"node": {node|json}, | ||||
"date": {date|json}, | ||||
|
r28212 | "desc": {desc|utf8|json}, | ||
|
r24563 | "branch": {if(branch, branch%changesetbranch, "default"|json)}, | ||
"bookmarks": [{join(changesetbookmark, ", ")}], | ||||
"tags": [{join(changesettag, ", ")}], | ||||
|
r28212 | "user": {author|utf8|json}, | ||
|
r24564 | "parents": [{join(parent%changesetparent, ", ")}], | ||
"phase": {phase|json} | ||||
|
r24563 | }' | ||
|
r28212 | changesetbranch = '{name|utf8|json}' | ||
changesetbookmark = '{bookmark|utf8|json}' | ||||
changesettag = '{tag|utf8|json}' | ||||
|
r24563 | changesetparent = '{node|json}' | ||
|
r24589 | manifest = '\{ | ||
"node": {node|json}, | ||||
"abspath": {path|json}, | ||||
"directories": [{join(dentries%direntry, ", ")}], | ||||
"files": [{join(fentries%fileentry, ", ")}], | ||||
"bookmarks": [{join(bookmarks%name, ", ")}], | ||||
"tags": [{join(tags%name, ", ")}] | ||||
}' | ||||
|
r28212 | name = '{name|utf8|json}' | ||
|
r24589 | direntry = '\{ | ||
"abspath": {path|json}, | ||||
"basename": {basename|json}, | ||||
"emptydirs": {emptydirs|json} | ||||
}' | ||||
fileentry = '\{ | ||||
"abspath": {file|json}, | ||||
"basename": {basename|json}, | ||||
"date": {date|json}, | ||||
"size": {size|json}, | ||||
"flags": {permissions|json} | ||||
}' | ||||
|
r24545 | tags = '\{ | ||
"node": {node|json}, | ||||
"tags": [{join(entriesnotip%tagentry, ", ")}] | ||||
}' | ||||
tagentry = '\{ | ||||
|
r28212 | "tag": {tag|utf8|json}, | ||
|
r24545 | "node": {node|json}, | ||
"date": {date|json} | ||||
}' | ||||
|
r24546 | bookmarks = '\{ | ||
"node": {node|json}, | ||||
"bookmarks": [{join(entries%bookmarkentry, ", ")}] | ||||
}' | ||||
bookmarkentry = '\{ | ||||
|
r28212 | "bookmark": {bookmark|utf8|json}, | ||
|
r24546 | "node": {node|json}, | ||
"date": {date|json} | ||||
}' | ||||
|
r24547 | branches = '\{ | ||
"branches": [{join(entries%branchentry, ", ")}] | ||||
}' | ||||
branchentry = '\{ | ||||
|
r28212 | "branch": {branch|utf8|json}, | ||
|
r24547 | "node": {node|json}, | ||
"date": {date|json}, | ||||
"status": {status|json} | ||||
}' | ||||
|
r29382 | shortlogentry = '{changelistentry}' | ||
summary = '\{ | ||||
"node": {node|json}, | ||||
"lastchange": {lastchange|json}, | ||||
"bookmarks": [{join(bookmarks%bookmarkentry, ", ")}], | ||||
"branches": [{join(branches%branchentry, ", ")}], | ||||
"shortlog": [{join(shortlog%shortlogentry, ", ")}], | ||||
"tags": [{join(tags%tagentry, ", ")}], | ||||
"archives": [{join(archives%archiveentry, ", ")}] | ||||
}' | ||||
archiveentry = '\{ | ||||
"node": {node|json}, | ||||
"extension": {extension|json}, | ||||
"type": {type|json} | ||||
}' | ||||
|
r24713 | filediff = '\{ | ||
"path": {file|json}, | ||||
"node": {node|json}, | ||||
"date": {date|json}, | ||||
|
r28212 | "desc": {desc|utf8|json}, | ||
"author": {author|utf8|json}, | ||||
|
r24713 | "parents": [{join(parent%changesetparent, ", ")}], | ||
"children": [{join(child%changesetparent, ", ")}], | ||||
"diff": [{join(diff%diffblock, ", ")}] | ||||
}' | ||||
diffblock = '\{ | ||||
"blockno": {blockno|json}, | ||||
"lines": [{join(lines, ", ")}] | ||||
}' | ||||
difflineplus = '\{ | ||||
"t": "+", | ||||
"n": {lineno|json}, | ||||
"l": {line|json} | ||||
}' | ||||
difflineminus = '\{ | ||||
"t": "-", | ||||
"n": {lineno|json}, | ||||
"l": {line|json} | ||||
}' | ||||
difflineat = '\{ | ||||
"t": "@", | ||||
"n": {lineno|json}, | ||||
"l": {line|json} | ||||
}' | ||||
diffline = '\{ | ||||
"t": "", | ||||
"n": {lineno|json}, | ||||
"l": {line|json} | ||||
}' | ||||
|
r24714 | filecomparison = '\{ | ||
"path": {file|json}, | ||||
"node": {node|json}, | ||||
"date": {date|json}, | ||||
|
r28212 | "desc": {desc|utf8|json}, | ||
"author": {author|utf8|json}, | ||||
|
r24714 | "parents": [{join(parent%changesetparent, ", ")}], | ||
"children": [{join(child%changesetparent, ", ")}], | ||||
"leftnode": {leftnode|json}, | ||||
"rightnode": {rightnode|json}, | ||||
"comparison": [{join(comparison, ", ")}] | ||||
}' | ||||
comparisonblock = '\{ | ||||
"lines": [{join(lines, ", ")}] | ||||
}' | ||||
comparisonline = '\{ | ||||
"t": {type|json}, | ||||
"ln": {leftlineno|json}, | ||||
"ll": {leftline|json}, | ||||
"rn": {rightlineno|json}, | ||||
"rl": {rightline|json} | ||||
}' | ||||
|
r24715 | fileannotate = '\{ | ||
"abspath": {file|json}, | ||||
"node": {node|json}, | ||||
|
r28212 | "author": {author|utf8|json}, | ||
|
r24715 | "date": {date|json}, | ||
|
r28212 | "desc": {desc|utf8|json}, | ||
|
r24715 | "parents": [{join(parent%changesetparent, ", ")}], | ||
"children": [{join(child%changesetparent, ", ")}], | ||||
"permissions": {permissions|json}, | ||||
"annotate": [{join(annotate%fileannotation, ", ")}] | ||||
}' | ||||
fileannotation = '\{ | ||||
"node": {node|json}, | ||||
|
r28212 | "author": {author|utf8|json}, | ||
"desc": {desc|utf8|json}, | ||||
|
r24715 | "abspath": {file|json}, | ||
"targetline": {targetline|json}, | ||||
"line": {line|json}, | ||||
"lineno": {lineno|json}, | ||||
"revdate": {revdate|json} | ||||
}' | ||||
|
r29380 | filelog = '\{ | ||
"entries": [{join(entries%changelistentry, ", ")}] | ||||
}' | ||||
|
r24544 | graph = '"not yet implemented"' | ||
|
r24590 | helptopics = '\{ | ||
"topics": [{join(topics%helptopicentry, ", ")}], | ||||
"earlycommands": [{join(earlycommands%helptopicentry, ", ")}], | ||||
"othercommands": [{join(othercommands%helptopicentry, ", ")}] | ||||
}' | ||||
helptopicentry = '\{ | ||||
|
r28212 | "topic": {topic|utf8|json}, | ||
"summary": {summary|utf8|json} | ||||
|
r24590 | }' | ||
|
r24591 | help = '\{ | ||
|
r28212 | "topic": {topic|utf8|json}, | ||
"rawdoc": {doc|utf8|json} | ||||
|
r24591 | }' | ||
|
r24544 | filenodelink = '' | ||
filenolink = '' | ||||
r28268 | index = '\{ | |||
"entries": [{join(entries%indexentry, ", ")}] | ||||
}' | ||||
indexentry = '\{ | ||||
"name": {name|utf8|json}, | ||||
"description": {description|utf8|json}, | ||||
"contact": {contact|utf8|json}, | ||||
"lastchange": {lastchange|json} | ||||
}' | ||||