equal
deleted
inserted
replaced
92 python mkmsg.py | hg --cwd b import - |
92 python mkmsg.py | hg --cwd b import - |
93 hg --cwd b tip | grep second |
93 hg --cwd b tip | grep second |
94 rm -r b |
94 rm -r b |
95 |
95 |
96 # subject: duplicate detection, removal of [PATCH] |
96 # subject: duplicate detection, removal of [PATCH] |
|
97 # The '---' tests the gitsendmail handling without proper mail headers |
97 cat > mkmsg2.py <<EOF |
98 cat > mkmsg2.py <<EOF |
98 import email.Message, sys |
99 import email.Message, sys |
99 msg = email.Message.Message() |
100 msg = email.Message.Message() |
100 msg.set_payload('email patch\n\nnext line\n' + open('tip.patch').read()) |
101 msg.set_payload('email patch\n\nnext line\n---\n' + open('tip.patch').read()) |
101 msg['Subject'] = '[PATCH] email patch' |
102 msg['Subject'] = '[PATCH] email patch' |
102 msg['From'] = 'email patcher' |
103 msg['From'] = 'email patcher' |
103 sys.stdout.write(msg.as_string()) |
104 sys.stdout.write(msg.as_string()) |
104 EOF |
105 EOF |
105 |
106 |