--- a/tests/test-hook.t Fri Jul 06 00:48:45 2012 +0200
+++ b/tests/test-hook.t Wed Jul 04 08:55:16 2012 +0200
@@ -543,7 +543,7 @@
$ echo 'precommit.importfail = python:importfail.whatever' >> .hg/hgrc
$ echo a >> a
- $ hg --traceback commit -ma 2>&1 | egrep '^(exception|Traceback|ImportError)'
+ $ hg --traceback commit -ma 2>&1 | egrep -v '^( +File| {4}[a-zA-Z(])'
exception from first failed import attempt:
Traceback (most recent call last):
ImportError: No module named somebogusmodule
@@ -551,6 +551,8 @@
Traceback (most recent call last):
ImportError: No module named hgext_importfail
Traceback (most recent call last):
+ Abort: precommit.importfail hook is invalid (import of "importfail" failed)
+ abort: precommit.importfail hook is invalid (import of "importfail" failed)
Issue1827: Hooks Update & Commit not completely post operation