##// END OF EJS Templates
compact: add color labels to -Tcompact
timeless -
r28827:1e184241 default
parent child Browse files
Show More
@@ -1,12 +1,30 b''
1 changeset = '{rev}{tags}{bookmarks}{parents} {node|short} {date|isodate} {author|user}\n {desc|firstline|strip}\n\n'
1 ldate = '{label("log.date",
2 changeset_quiet = '{rev}:{node|short}\n'
2 "{date|isodate}")}'
3 changeset_verbose = '{rev}{tags}{parents} {node|short} {date|isodate} {author}\n {desc|strip}\n\n'
3
4 ldesc = '{label('ui.note log.description',
5 '{desc|strip}')}'
6 ldescfirst = '{label('ui.note log.description',
7 '{desc|firstline|strip}')}'
8
9 changeset = '{lrev}{tags}{bookmarks}{parents} {lnode} {ldate} {luser}\n {ldescfirst}\n\n'
10 changeset_quiet = '{lrev}:{lnode}\n'
11 changeset_verbose = '{lrev}{tags}{parents} {lnode} {ldate} {lauthor}\n {ldesc}\n\n'
12 lrev = '{label("log.changeset changeset.{phase}",
13 "{rev}")}'
14 lnode = '{label("log.node",
15 "{node|short}")}'
16 lauthor = '{label("log.user",
17 "{author}")}'
18 luser = '{label("log.user",
19 "{author|user}")}'
4 start_tags = '['
20 start_tags = '['
5 tag = '{tag},'
21 tag = '{label("log.tag",
22 "{tag},")}'
6 last_tag = '{tag}]'
23 last_tag = '{tag}]'
7 start_parents = ':'
24 start_parents = ':'
8 parent = '{rev},'
25 parent = '{lrev},'
9 last_parent = '{rev}'
26 last_parent = '{lrev}'
10 start_bookmarks = '['
27 start_bookmarks = '['
11 bookmark = '{bookmark},'
28 bookmark = '{label("log.bookmark",
29 "{bookmark},")}'
12 last_bookmark = '{bookmark}]'
30 last_bookmark = '{bookmark}]'
@@ -163,6 +163,10 b' Make sure ui.formatted=False works'
163 [log.date|date: Thu Jan 01 00:00:00 1970 +0000]
163 [log.date|date: Thu Jan 01 00:00:00 1970 +0000]
164 [log.summary|summary: initial checkin]
164 [log.summary|summary: initial checkin]
165
165
166 $ hg log -Tcompact --color=debug
167 [log.changeset changeset.draft|0][tip] [log.node|389aef86a55e] [log.date|1970-01-01 00:00 +0000] [log.user|test]
168 [ui.note log.description|initial checkin]
169
166 Labels on empty strings should not be displayed, labels on custom
170 Labels on empty strings should not be displayed, labels on custom
167 templates should be.
171 templates should be.
168
172
General Comments 0
You need to be logged in to leave comments. Login now