hgbook
changeset 167:e67251ac336f
Small portability change. "grep -P" doesn't work on Debian.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue Mar 27 01:15:34 2007 -0500 (2007-03-27) |
parents | 08a4467f4891 |
children | f4a50cf01d13 |
files | en/examples/hook.ws en/examples/hook.ws.simple.out |
line diff
1.1 --- a/en/examples/hook.ws Mon Mar 26 22:59:43 2007 -0700 1.2 +++ b/en/examples/hook.ws Tue Mar 27 01:15:34 2007 -0500 1.3 @@ -3,7 +3,7 @@ 1.4 hg init a 1.5 cd a 1.6 echo '[hooks]' > .hg/hgrc 1.7 -echo "pretxncommit.whitespace = hg export tip | (! grep -qP '^\\+.*[ \\t]$')" >> .hg/hgrc 1.8 +echo "pretxncommit.whitespace = hg export tip | (! egrep -q '^\\+.*[ \\t]$')" >> .hg/hgrc 1.9 1.10 #$ name: simple 1.11
2.1 --- a/en/examples/hook.ws.simple.out Mon Mar 26 22:59:43 2007 -0700 2.2 +++ b/en/examples/hook.ws.simple.out Tue Mar 27 01:15:34 2007 -0500 2.3 @@ -1,6 +1,6 @@ 2.4 $ \textbf{cat .hg/hgrc} 2.5 [hooks] 2.6 -pretxncommit.whitespace = hg export tip | (! grep -qP '^\textbackslash{}+.*[ \textbackslash{}t]$') 2.7 +pretxncommit.whitespace = hg export tip | (! egrep -q '^\textbackslash{}+.*[ \textbackslash{}t]$') 2.8 $ \textbf{echo 'a ' > a} 2.9 $ \textbf{hg commit -A -m 'test with trailing whitespace'} 2.10 adding a