map-cmdline.default
87 lines
| 3.3 KiB
| text/plain
|
TextLexer
|
r22766 | # Base templates. Due to name clashes with existing keywords, we have | ||
# to replace some keywords with 'lkeyword', for 'labelled keyword' | ||||
|
r34715 | |||
[templates] | ||||
|
r30713 | changeset = '{cset}{branches}{bookmarks}{tags}{parents}{user}{ldate}{ltroubles}{summary}\n' | ||
|
r24304 | changeset_quiet = '{lnode}' | ||
|
r30713 | changeset_verbose = '{cset}{branches}{bookmarks}{tags}{parents}{user}{ldate}{ltroubles}{lfiles}{lfile_copies_switch}{description}\n' | ||
changeset_debug = '{fullcset}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{user}{ldate}{ltroubles}{lfile_mods}{lfile_adds}{lfile_dels}{lfile_copies_switch}{extras}{description}\n' | ||||
|
r22766 | |||
# File templates | ||||
lfiles = '{if(files, | ||||
label("ui.note log.files", | ||||
"files: {files}\n"))}' | ||||
lfile_mods = '{if(file_mods, | ||||
label("ui.debug log.files", | ||||
"files: {file_mods}\n"))}' | ||||
lfile_adds = '{if(file_adds, | ||||
label("ui.debug log.files", | ||||
"files+: {file_adds}\n"))}' | ||||
lfile_dels = '{if(file_dels, | ||||
label("ui.debug log.files", | ||||
"files-: {file_dels}\n"))}' | ||||
lfile_copies_switch = '{if(file_copies_switch, | ||||
label("ui.note log.copies", | ||||
"copies: {file_copies_switch | ||||
% ' {name} ({source})'}\n"))}' | ||||
# General templates | ||||
|
r34717 | cset = '{labelcset("changeset: {rev}:{node|short}")}\n' | ||
fullcset = '{labelcset("changeset: {rev}:{node}")}\n' | ||||
|
r22766 | |||
lphase = '{label("log.phase", | ||||
"phase: {phase}")}\n' | ||||
parent = '{label("log.parent changeset.{phase}", | ||||
"parent: {rev}:{node|formatnode}")}\n' | ||||
|
r24304 | lnode = '{label("log.node", | ||
|
r22766 | "{rev}:{node|short}")}\n' | ||
manifest = '{label("ui.debug log.manifest", | ||||
"manifest: {rev}:{node}")}\n' | ||||
branch = '{label("log.branch", | ||||
"branch: {branch}")}\n' | ||||
tag = '{label("log.tag", | ||||
"tag: {tag}")}\n' | ||||
bookmark = '{label("log.bookmark", | ||||
"bookmark: {bookmark}")}\n' | ||||
user = '{label("log.user", | ||||
"user: {author}")}\n' | ||||
|
r24637 | summary = '{if(desc|strip, "{label('log.summary', | ||
'summary: {desc|firstline}')}\n")}' | ||||
|
r22766 | |||
ldate = '{label("log.date", | ||||
"date: {date|date}")}\n' | ||||
|
r33778 | ltroubles = '{if(instabilities, "{label('log.instability', | ||
|
r33675 | 'instability: {join(instabilities, ", ")}')}\n")}' | ||
|
r30713 | |||
|
r22766 | extra = '{label("ui.debug log.extra", | ||
"extra: {key}={value|stringescape}")}\n' | ||||
|
r24637 | description = '{if(desc|strip, "{label('ui.note log.description', | ||
'description:')} | ||||
{label('ui.note log.description', | ||||
'{desc|strip}')}\n\n")}' | ||||
|
r25514 | |||
status = '{status} {path}\n{if(copy, " {copy}\n")}' | ||||
|
r34717 | |||
[templatealias] | ||||
labelcset(expr) = label(separate(" ", | ||||
"log.changeset", | ||||
"changeset.{phase}", | ||||
if(obsolete, "changeset.obsolete"), | ||||
if(instabilities, "changeset.unstable"), | ||||
|
r34718 | join(instabilities | ||
% "instability.{instability}", " ")), | ||||
|
r34717 | expr) | ||