mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
compact: add color labels to -Tcompact
This commit is contained in:
parent
0262d50094
commit
d34897fb75
@ -1,12 +1,30 @@
|
|||||||
changeset = '{rev}{tags}{bookmarks}{parents} {node|short} {date|isodate} {author|user}\n {desc|firstline|strip}\n\n'
|
ldate = '{label("log.date",
|
||||||
changeset_quiet = '{rev}:{node|short}\n'
|
"{date|isodate}")}'
|
||||||
changeset_verbose = '{rev}{tags}{parents} {node|short} {date|isodate} {author}\n {desc|strip}\n\n'
|
|
||||||
|
ldesc = '{label('ui.note log.description',
|
||||||
|
'{desc|strip}')}'
|
||||||
|
ldescfirst = '{label('ui.note log.description',
|
||||||
|
'{desc|firstline|strip}')}'
|
||||||
|
|
||||||
|
changeset = '{lrev}{tags}{bookmarks}{parents} {lnode} {ldate} {luser}\n {ldescfirst}\n\n'
|
||||||
|
changeset_quiet = '{lrev}:{lnode}\n'
|
||||||
|
changeset_verbose = '{lrev}{tags}{parents} {lnode} {ldate} {lauthor}\n {ldesc}\n\n'
|
||||||
|
lrev = '{label("log.changeset changeset.{phase}",
|
||||||
|
"{rev}")}'
|
||||||
|
lnode = '{label("log.node",
|
||||||
|
"{node|short}")}'
|
||||||
|
lauthor = '{label("log.user",
|
||||||
|
"{author}")}'
|
||||||
|
luser = '{label("log.user",
|
||||||
|
"{author|user}")}'
|
||||||
start_tags = '['
|
start_tags = '['
|
||||||
tag = '{tag},'
|
tag = '{label("log.tag",
|
||||||
|
"{tag},")}'
|
||||||
last_tag = '{tag}]'
|
last_tag = '{tag}]'
|
||||||
start_parents = ':'
|
start_parents = ':'
|
||||||
parent = '{rev},'
|
parent = '{lrev},'
|
||||||
last_parent = '{rev}'
|
last_parent = '{lrev}'
|
||||||
start_bookmarks = '['
|
start_bookmarks = '['
|
||||||
bookmark = '{bookmark},'
|
bookmark = '{label("log.bookmark",
|
||||||
|
"{bookmark},")}'
|
||||||
last_bookmark = '{bookmark}]'
|
last_bookmark = '{bookmark}]'
|
||||||
|
@ -163,6 +163,10 @@ Make sure ui.formatted=False works
|
|||||||
[log.date|date: Thu Jan 01 00:00:00 1970 +0000]
|
[log.date|date: Thu Jan 01 00:00:00 1970 +0000]
|
||||||
[log.summary|summary: initial checkin]
|
[log.summary|summary: initial checkin]
|
||||||
|
|
||||||
|
$ hg log -Tcompact --color=debug
|
||||||
|
[log.changeset changeset.draft|0][tip] [log.node|389aef86a55e] [log.date|1970-01-01 00:00 +0000] [log.user|test]
|
||||||
|
[ui.note log.description|initial checkin]
|
||||||
|
|
||||||
Labels on empty strings should not be displayed, labels on custom
|
Labels on empty strings should not be displayed, labels on custom
|
||||||
templates should be.
|
templates should be.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user