tests/test-keyword
changeset 294 343c5dd8dcda
parent 290 b05795ad5632
child 302 caa3d683cfcf
--- a/tests/test-keyword	Sat Nov 10 14:06:59 2007 +0100
+++ b/tests/test-keyword	Sat Nov 10 14:08:12 2007 +0100
@@ -6,6 +6,9 @@
 [keyword]
 * =
 b = ignore
+[hooks]
+commit=
+commit.test=cp a hooktest
 EOF
 
 echo % help
@@ -37,7 +40,7 @@
 echo % cat
 cat sym a b
 
-echo % default keyword expansion
+echo % default keyword expansion including commit hook
 echo % commit
 hg --debug commit -A -mabsym -d '0 0' -u 'User Name <user@example.com>'
 echo % status
@@ -50,6 +53,15 @@
 hg cat sym a b
 
 echo
+echo % diff a hooktest
+diff a hooktest
+
+echo % removing commit hook from config
+sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook
+mv $HGRCPATH.nohook $HGRCPATH
+rm hooktest
+
+echo
 echo % touch
 touch a b
 echo % status