mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
994c332a3b
This allows us to %include map-cmdline.<style> file in our .hgrc files. The syntax is slightly different as hgrc doesn't support loading an external template file, but map-cmdline files don't use this feature, so the syntax can be considered identical in practice. Unnamed section is remapped for backward compatibility.
22 lines
969 B
Plaintext
22 lines
969 B
Plaintext
%include map-cmdline.default
|
|
|
|
[templates]
|
|
# Override base templates
|
|
changeset = '{cset}{branches}{bookmarks}{tags}{parents}{user}{ldate}{summary}{lfiles}\n'
|
|
changeset_verbose = '{cset}{branches}{bookmarks}{tags}{parents}{user}{ldate}{description}{lfiles}\n'
|
|
changeset_debug = '{fullcset}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{user}{ldate}{extras}{description}{lfiles}\n'
|
|
|
|
# Override the file templates
|
|
lfiles = '{if(files,
|
|
label('ui.note log.files',
|
|
'files:\n'))}{lfile_mods}{lfile_adds}{lfile_dels}'
|
|
|
|
lfile_adds = '{file_adds % "{lfile_add}{lfile_src}"}'
|
|
lfile_mods = '{file_mods % "{lfile_mod}{lfile_src}"}'
|
|
lfile_add = '{label("status.added", "A {file}\n")}'
|
|
lfile_mod = '{label("status.modified", "M {file}\n")}'
|
|
lfile_src = '{ifcontains(file, file_copies_switch,
|
|
label("status.copied", " {get(file_copies_switch, file)}\n"))}'
|
|
|
|
lfile_dels = '{file_dels % "{label('status.removed', 'R {file}\n')}"}'
|