diff .hgrc @ 265:09c0d4ed07f3

hg: new egrep alias
author Augie Fackler <durin42@gmail.com>
date Wed, 02 Nov 2011 09:53:57 -0500
parents a5ec16bba8a9
children 393535e99b8a
line wrap: on
line diff
--- a/.hgrc
+++ b/.hgrc
@@ -23,6 +23,7 @@ hg_remotebranches=
 ll=log --graph --style compact --limit 6 -r 'sort((::. or bookmark() or heads(upstream())), "-rev")'
 upstream-bookmarks = log -r 'bookmark() and upstream()' --template '{bookmarks}\n'
 utip = log -r 'limit(heads(upstream()), 1)'
+egrep = !$HG locate -0 '$2' $3 $4 $5 $6 $7 $8 $9 | xargs -0 egrep -H '$1'
 
 wc-out = log -r 'ancestors(.) and not upstream()'
 wc-email = email -r 'ancestors(.) and not upstream()'