--- a/tests/test-notify Tue Oct 14 20:13:53 2008 +0200
+++ b/tests/test-notify Fri Oct 17 17:34:25 2008 +0200
@@ -70,3 +70,17 @@
-e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \
-e 's/^Date:.*/Date:/'
+cat << EOF >> $HGRCPATH
+[hooks]
+incoming.notify = python:hgext.notify.hook
+
+[notify]
+sources = pull
+diffstat = True
+EOF
+
+echo % pull
+hg --cwd b rollback
+hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
+ -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \
+ -e 's/^Date:.*/Date:/'