--- a/tests/test-keyword Wed Feb 13 23:49:57 2008 +0100
+++ b/tests/test-keyword Fri Feb 15 20:18:56 2008 +0100
@@ -4,6 +4,7 @@
[extensions]
hgext.keyword =
hgext.mq =
+hgext.notify =
[keyword]
* =
b = ignore
@@ -88,8 +89,25 @@
hg init Test
cd Test
+echo % notify on pull to check whether keywords stay as is in email
+echo % ie. if patch.diff wrapper acts as it should
+
+cat <<EOF >> $HGRCPATH
+[hooks]
+incoming.notify = python:hgext.notify.hook
+[notify]
+sources = pull
+diffstat = False
+[reposubs]
+* = Test
+EOF
+
echo % pull from bundle
-hg pull -u ../kw.hg
+hg pull -u ../kw.hg 2>&1 | sed -e '/^Date:/,/^diffs (/ d'
+
+echo % remove notify config
+sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nonotify
+mv $HGRCPATH.nonotify $HGRCPATH
echo % touch
touch a b