Mercurial > public > mercurial-scm > hg
diff tests/test-notify @ 7105:31837416ef4d
tests: add some testing for patch.diffstat()
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Fri, 17 Oct 2008 17:34:25 +0200 |
parents | 25e74cd3f023 |
children | 89431fbe0524 |
line wrap: on
line diff
--- 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:/'