# HG changeset patch
# User Mads Kiilerich <mads@kiilerich.com>
# Date 1260961821 -3600
#      Wed Dec 16 12:10:21 2009 +0100
# Branch stable
# Node ID 7f5a71946aaa35d091aab1d3b6d6a598b025ab35
# Parent  ad5ef62b5a983d934af5872f8d841366ab641122
test-hook: Don't use extended regular expressions with grep

Using egrep fixes failure on Solaris

diff --git a/tests/test-hook b/tests/test-hook
--- a/tests/test-hook
+++ b/tests/test-hook
@@ -260,6 +260,6 @@
 echo 'precommit.importfail = python:importfail.whatever' >> .hg/hgrc
 
 echo a >> a
-hg --traceback commit -Ama 2>&1 | grep '^\(exception\|Traceback\|ImportError\)'
+hg --traceback commit -Ama 2>&1 | egrep '^(exception|Traceback|ImportError)'
 
 exit 0