Mercurial > dotfiles
changeset 340:1b4b235482c5
hgrc: new smartlog templates and aliases from mpm
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 21 Jul 2014 14:19:43 -0400 |
parents | 07053ec3c643 |
children | 0a593d2c0595 |
files | .hgrc |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgrc +++ b/.hgrc @@ -60,3 +60,19 @@ qseries.unapplied = magenta bold [phases] publish=false + +# Config tricks from mpm for smartlog +[alias] +sl = log -Gr smart -Tsl + +[templates] +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}"))}\n{label(ifcontains(rev, revset('.'), 'desc.here'),desc|firstline)}' + +[color] +sl.book = magenta bold +changeset.draft = magenta +changeset.secret = red +desc.here = inverse + +[revsetalias] +smart = (parents(not public()) or not public() or . or head()) and (not obsolete() or unstable()^)