Mercurial > hg-stable
diff tests/test-notify @ 4479:afa1f57ae484
Add sending date to notify message.
When using SMTP, no date field was set into the message, which causes it to be
displayed as being send on 1st january 1970 on most MUA.
author | Mathieu Clabaut <mathieu.clabaut@gmail.com> |
---|---|
date | Thu, 24 May 2007 16:32:38 +0200 |
parents | bfeff6dcac7a |
children | 5371a213b0f4 |
line wrap: on
line diff
--- a/tests/test-notify Fri Jun 01 19:45:05 2007 +0200 +++ b/tests/test-notify Thu May 24 16:32:38 2007 +0200 @@ -34,7 +34,8 @@ echo '% pull (minimal config)' hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \ - -e 's/^details: .*test-notify/details: test-notify/' + -e 's/^details: .*test-notify/details: test-notify/' \ + -e 's/^Date:.*/Date:/' cat <<EOF >> $HGRCPATH [notify] @@ -50,5 +51,6 @@ 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/changeset \([0-9a-f]*\) in .*/changeset \1/' \ + -e 's/^Date:.*/Date:/'