Mercurial > hgbook
diff en/examples/hook.ws @ 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 | 06d18465df03 |
children |
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