Mercurial > hgbook
changeset 167:e67251ac336f
Small portability change. "grep -P" doesn't work on Debian.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 27 Mar 2007 01:15:34 -0500 |
parents | 08a4467f4891 |
children | f4a50cf01d13 |
files | en/examples/hook.ws en/examples/hook.ws.simple.out |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/en/examples/hook.ws Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/hook.ws Tue Mar 27 01:15:34 2007 -0500 @@ -3,7 +3,7 @@ hg init a cd a echo '[hooks]' > .hg/hgrc -echo "pretxncommit.whitespace = hg export tip | (! grep -qP '^\\+.*[ \\t]$')" >> .hg/hgrc +echo "pretxncommit.whitespace = hg export tip | (! egrep -q '^\\+.*[ \\t]$')" >> .hg/hgrc #$ name: simple
--- a/en/examples/hook.ws.simple.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/hook.ws.simple.out Tue Mar 27 01:15:34 2007 -0500 @@ -1,6 +1,6 @@ $ \textbf{cat .hg/hgrc} [hooks] -pretxncommit.whitespace = hg export tip | (! grep -qP '^\textbackslash{}+.*[ \textbackslash{}t]$') +pretxncommit.whitespace = hg export tip | (! egrep -q '^\textbackslash{}+.*[ \textbackslash{}t]$') $ \textbf{echo 'a ' > a} $ \textbf{hg commit -A -m 'test with trailing whitespace'} adding a