Mercurial > public > mercurial-scm > hg
diff tests/test-import @ 5418:9b469bdb1ce1
patch: fix git sendmail handling without proper mail headers
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 08 Oct 2007 22:20:23 +0200 |
parents | a7915f79d4cc |
children | b0ff52ec9b52 1fb38ef1f113 |
line wrap: on
line diff
--- a/tests/test-import Mon Oct 08 11:18:34 2007 +0800 +++ b/tests/test-import Mon Oct 08 22:20:23 2007 +0200 @@ -94,10 +94,11 @@ rm -r b # subject: duplicate detection, removal of [PATCH] +# The '---' tests the gitsendmail handling without proper mail headers cat > mkmsg2.py <<EOF import email.Message, sys msg = email.Message.Message() -msg.set_payload('email patch\n\nnext line\n' + open('tip.patch').read()) +msg.set_payload('email patch\n\nnext line\n---\n' + open('tip.patch').read()) msg['Subject'] = '[PATCH] email patch' msg['From'] = 'email patcher' sys.stdout.write(msg.as_string())