# HG changeset patch # User Augie Fackler # Date 1454365705 18000 # Node ID cf3b1ba01e692b00d78838ce8b372652843994e4 # Parent 40c0bc5ff266abe77065b15a3f99bc1f6c3dbc6d hg egrep: ensure we're in the repo root before running grep diff --git a/.hgrc b/.hgrc --- a/.hgrc +++ b/.hgrc @@ -20,7 +20,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() or obsolete())' --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' +egrep = !$HG locate -0 '$2' $3 $4 $5 $6 $7 $8 $9 | (cd $(hg root) ; xargs -0 egrep -H '$1') crecord = !$HG commit --interactive --config experimental.crecord=yes $@ wc-out = log -r 'ancestors(.) and not upstream()'