Mercurial > public > mercurial-scm > hg-stable
diff tests/test-keyword @ 6116:e27f39865d7e
keyword: add test for patch.diff monkey
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Fri, 15 Feb 2008 18:36:49 +0100 |
parents | de08788511d7 |
children | 09b00faa8670 |
line wrap: on
line diff
--- a/tests/test-keyword Fri Feb 15 18:36:28 2008 +0100 +++ b/tests/test-keyword Fri Feb 15 18:36:49 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