Mercurial > infra > home / templates/map-cmdline.default
changeset 102: |
59fd93e4d36f |
parent: |
d25f982fb8a6
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 13 Sep 2024 20:16:24 -0400 |
permissions: |
-rw-r--r-- |
description: |
cleanup |
1 # Base templates. Due to name clashes with existing keywords, we have 2 # to replace some keywords with 'lkeyword', for 'labelled keyword' 5 changeset = '{cset}{branches}{bookmarks}{tags}{parents}{luser}{ldate}{ltroubles}{lobsfate}{summary}\n' 6 changeset_quiet = '{lnode}' 7 changeset_verbose = '{cset}{branches}{bookmarks}{tags}{parents}{luser}{ldate}{ltroubles}{lobsfate}{lfiles}{lfile_copies_switch}{description}\n' 8 changeset_debug = '{fullcset}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{luser}{ldate}{ltroubles}{lobsfate}{lfile_mods}{lfile_adds}{lfile_dels}{lfile_copies_switch}{extras}{description}\n' 12 label("ui.note log.files", 13 "files: {files}\n"))}' 15 lfile_mods = '{if(file_mods, 16 label("ui.debug log.files", 17 "files: {file_mods}\n"))}' 19 lfile_adds = '{if(file_adds, 20 label("ui.debug log.files", 21 "files+: {file_adds}\n"))}' 23 lfile_dels = '{if(file_dels, 24 label("ui.debug log.files", 25 "files-: {file_dels}\n"))}' 27 lfile_copies_switch = '{if(file_copies_switch, 28 label("ui.note log.copies", 29 "copies: {file_copies_switch 30 % ' {name} ({source})'}\n"))}' 33 cset = '{labelcset("changeset: {rev}:{node|short}")}\n' 34 fullcset = '{labelcset("changeset: {rev}:{node}")}\n' 36 lphase = '{label("log.phase", 39 parent = '{label("log.parent changeset.{phase}", 40 "parent: {rev}:{node|formatnode}")}\n' 42 lnode = '{label("log.node", 43 "{rev}:{node|short}")}\n' 45 manifest = '{label("ui.debug log.manifest", 46 "manifest: {rev}:{node}")}\n' 48 branch = '{label("log.branch", 49 "branch: {branch}")}\n' 51 tag = '{label("log.tag", 54 bookmark = '{label("log.bookmark", 55 "bookmark: {bookmark}")}\n' 57 luser = '{label("log.user", 60 summary = '{if(desc|strip, "{label('log.summary', 61 'summary: {desc|firstline}')}\n")}' 63 ldate = '{label("log.date", 64 "date: {date|date}")}\n' 66 ltroubles = '{if(instabilities, "{label('log.instability', 67 'instability: {join(instabilities, ", ")}')}\n")}' 69 extra = '{label("ui.debug log.extra", 70 "extra: {key}={value|stringescape}")}\n' 72 description = '{if(desc|strip, "{label('ui.note log.description', 74 {label('ui.note log.description', 75 '{desc|strip}')}\n\n")}' 77 status = '{status} {path|relpath}\n{if(source, " {source|relpath}\n")}' 79 # Obsfate templates, it would be removed once we introduce the obsfate 81 lobsfate = '{if(obsfate, "{label('log.obsfate', '{obsfate % "obsolete: {fate}\n"}')}")}' 84 labelcset(expr) = label(separate(" ", 87 if(obsolete, "changeset.obsolete"), 88 if(instabilities, "changeset.unstable"), 90 % "instability.{instability}", " ")),