# HG changeset patch # User Bryan O'Sullivan # Date 1174976134 18000 # Node ID e67251ac336fa0aedf51ffa5cfe0c5b591dfb807 # Parent 08a4467f489162c14cf17b94aa771a23dd6f02dc Small portability change. "grep -P" doesn't work on Debian. diff -r 08a4467f4891 -r e67251ac336f en/examples/hook.ws --- 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 diff -r 08a4467f4891 -r e67251ac336f en/examples/hook.ws.simple.out --- 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