diff tests/test-hook @ 4634:73bf2b586f3f

Use printenv.py for pre/post-command-hooks (fixes tests on Solaris, too)
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 19 Jun 2007 08:17:55 +0200
parents e6d105a51ec7
children 7a7d4937272b
line wrap: on
line diff
--- a/tests/test-hook
+++ b/tests/test-hook
@@ -11,9 +11,9 @@ echo 'commit.b = unset HG_LOCAL HG_TAG; 
 echo 'precommit = unset HG_LOCAL HG_NODE HG_TAG; python ../printenv.py precommit' >> .hg/hgrc
 echo 'pretxncommit = unset HG_LOCAL HG_TAG; python ../printenv.py pretxncommit' >> .hg/hgrc
 echo 'pretxncommit.tip = hg -q tip' >> .hg/hgrc
-echo 'pre-identify = false' >> .hg/hgrc
-echo 'pre-cat = echo "meow $HG_ARGS"' >> .hg/hgrc
-echo 'post-cat = echo "purr $HG_RESULT"' >> .hg/hgrc
+echo 'pre-identify = python ../printenv.py pre-identify 1' >> .hg/hgrc
+echo 'pre-cat = python ../printenv.py pre-cat' >> .hg/hgrc
+echo 'post-cat = python ../printenv.py post-cat' >> .hg/hgrc
 echo a > a
 hg add a
 hg commit -m a -d "1000000 0"