changeset 1481:acd1832ebf31

Change test-hook to test multiple hooks
author Matt Mackall <mpm@selenic.com>
date Sat, 29 Oct 2005 13:45:01 -0700
parents ae0d8d632b83
children 4d38b85e60aa
files tests/test-hook tests/test-hook.out
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hook	Sat Oct 29 13:44:05 2005 -0700
+++ b/tests/test-hook	Sat Oct 29 13:45:01 2005 -0700
@@ -4,6 +4,7 @@
 echo "[hooks]" > .hg/hgrc
 echo 'precommit = echo precommit hook' >> .hg/hgrc
 echo 'commit = echo commit hook: $NODE' >> .hg/hgrc
+echo 'commit.b = echo commit hook b' >> .hg/hgrc
 echo a > a
 hg add a
 hg commit -m "test" -d "0 0"
--- a/tests/test-hook.out	Sat Oct 29 13:44:05 2005 -0700
+++ b/tests/test-hook.out	Sat Oct 29 13:45:01 2005 -0700
@@ -1,2 +1,3 @@
 precommit hook
+commit hook b
 commit hook: acb14030fe0a21b60322c440ad2d20cf7685a376