tests/test-hook
changeset 487 2ad41189bee5
child 749 7e4843b7efd2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-hook	Mon Jun 27 22:18:12 2005 -0800
@@ -0,0 +1,9 @@
+#!/bin/sh -x
+
+hg init
+echo "[hooks]" > .hg/hgrc
+echo 'precommit = echo precommit hook' >> .hg/hgrc
+echo 'commit = echo commit hook: $NODE' >> .hg/hgrc
+echo a > a
+hg add a
+hg commit -t "test" -u test -d "0 0"