diff -r 33e5b8a51e47 -r 6e2293f7b9f7 tests/test-keyword --- a/tests/test-keyword Thu Feb 14 13:26:51 2008 +0100 +++ b/tests/test-keyword Thu Feb 14 13:30:17 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 <> $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