# HG changeset patch # User Augie Fackler # Date 1405966783 14400 # Node ID 1b4b235482c51b0bc0f22c371badaf01116a3246 # Parent 07053ec3c6439bf3325cdddb8ba47f7782597768 hgrc: new smartlog templates and aliases from mpm diff --git a/.hgrc b/.hgrc --- 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()^)