Mercurial > dotfiles
diff .hgrc @ 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 | 3f3d52956ff7 |
children | f95ae07fb55a |
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()^)