changeset 7:b5122fcb3041

Add sjl's "smart log" alias and associated tools
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 27 Aug 2014 17:02:05 -0400
parents 086299345bd6
children 17840fa48b9e
files hgrc
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgrc
+++ b/hgrc
@@ -39,7 +39,7 @@
 [pager]
 pager = LESS='FSRX' less
 attend = tags, help, annotate, cat, diff, export, status,\
-         outgoing, incoming, glog, log, grep
+         outgoing, incoming, glog, log, grep, sl, pvr
 
 [color]
 mode=terminfo
@@ -64,6 +64,8 @@
 changeset.secret = blue bold
 changeset.draft = brightyellow bold
 
+desc.here = inverse
+
 [tortoisehg]
 authorcolor = True
 
@@ -99,3 +101,12 @@
 
 [revsetalias]
 bt($1, $2) = ::$2 - ::$1
+
+[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)}'
+
+[revsetalias]
+smart = (parents(not public()) or not public() or . or head()) and (not obsolete() or unstable()^)
\ No newline at end of file