tests/test-hook.t
changeset 17217 1b2b727a885f
parent 17183 4253cfee08ef
child 17252 16fad7323e56
--- a/tests/test-hook.t	Wed Jul 18 07:51:20 2012 -0700
+++ b/tests/test-hook.t	Fri Jul 06 18:41:25 2012 +0200
@@ -530,6 +530,20 @@
   nothing changed
   [1]
 
+  $ echo '[hooks]' > .hg/hgrc
+  $ echo "update.ne = python:`pwd`/nonexisting.py:testhook" >> .hg/hgrc
+  $ echo "pre-identify.npmd = python:`pwd`/:no_python_module_dir" >> .hg/hgrc
+
+  $ hg up null
+  loading update.ne hook failed:
+  abort: No such file or directory: $TESTTMP/d/repo/nonexisting.py
+  [255]
+
+  $ hg id
+  loading pre-identify.npmd hook failed:
+  abort: No module named repo!
+  [255]
+
   $ cd ../../b
 
 make sure --traceback works on hook import failure