comparison .hgrc @ 399:1a85ad164ae7

hg: refactor sl template to use templatealias for readability
author Augie Fackler <raf@durin42.com>
date Tue, 19 Jul 2016 09:20:53 -0400
parents 2f05f081d9c1
children 879df95a0578
comparison
equal deleted inserted replaced
398:1cda3348f36b 399:1a85ad164ae7
70 [alias] 70 [alias]
71 sl = log -Gr smart -Tsl 71 sl = log -Gr smart -Tsl
72 si = incoming -GTsl 72 si = incoming -GTsl
73 sl. = log -Gr 'smart and ::.' -Tsl 73 sl. = log -Gr 'smart and ::.' -Tsl
74 74
75 [templatealias]
76 sl_branch = '{ifeq(branch,"default","","{label(black_background, branch)} ")}'
77 sl_node = '{label("log.changeset changeset.{phase}", shortest(node))}'
78 sl_user = '{label("grep.user", author|user)}'
79 sl_tags = '{label("tags.normal", if(tags," {tags}"))}'
80 sl_book = '{label("sl.book", if(bookmarks," {bookmarks}"))}'
81 sl_topic = '{label("sl.topic", if(topics," {topics}"))}'
82 sl_desc = '{label(ifcontains(rev, revset('.'), 'desc.here'),desc|firstline)}'
83
75 [templates] 84 [templates]
76 sl = '{ifeq(branch,"default","","{label(black_background, branch)} ")}{label("log.changeset changeset.{phase}", shortest(node))} {label("grep.user", author|user)}{label("tags.normal", if(tags," {tags}"))}{label("sl.book", if(bookmarks," {bookmarks}"))}{label("sl.topic", if(topics," {topics}"))}\n{label(ifcontains(rev, revset('.'), 'desc.here'),desc|firstline)}' 85 sl = '{sl_branch}{sl_node} {sl_user}{sl_tags}{sl_book}{sl_topic}\n{sl_desc}'
77 86
78 [color] 87 [color]
79 sl.book = magenta bold 88 sl.book = magenta bold
80 sl.topic = yellow bold 89 sl.topic = yellow bold
81 changeset.draft = magenta 90 changeset.draft = magenta