[PATCH 2 of 3] test-hook: Don't use extended regular expressions with grep
Mads Kiilerich
mads at kiilerich.com
Wed Dec 16 05:10:51 CST 2009
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1260961821 -3600
# Node ID 4a95b7af87493ed48ce2d2f1c057fab4f9ae50c4
# Parent 07a0be5ca636526be895c663b978501ade9b3c3e
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
More information about the Mercurial-devel
mailing list