##// END OF EJS Templates
test-patchbomb: write in binary mode, force non-interactive mode (win32)
Patrick Mezard -
r7265:0cf3442e default
parent child Browse files
Show More
@@ -45,26 +45,26 b" hg email --date '1970-1-1 0:3' -n -f quu"
45 45 fixheaders
46 46
47 47 echo % utf-8 patch
48 python -c 'fp = open("utf", "w"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
48 python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
49 49 hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64'
50 50
51 51 echo % no mime encoding for email --test
52 hg email --date '1970-1-1 0:4' -f quux -t foo -r tip -n | fixheaders > mailtest
52 hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | fixheaders > mailtest
53 53 echo % md5sum of 8-bit output
54 54 $TESTDIR/md5sum.py mailtest
55 55 rm mailtest
56 56
57 57 echo % mime encoded mbox
58 hg email --date '1970-1-1 0:4' -f quux -t foo -r tip -m mbox
58 hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
59 59 cat mbox | fixheaders
60 60 rm mbox
61 61
62 62 echo % iso-8859-1 patch
63 python -c 'fp = open("isolatin", "w"); fp.write("h\xF6mma!\n"); fp.close();'
63 python -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
64 64 hg commit -A -d '5 0' -m 'charset=us-ascii; content-transfer-encoding: 8bit'
65 65
66 66 echo % fake ascii mbox
67 hg email --date '1970-1-1 0:5' -f quux -t foo -r tip -m mbox
67 hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
68 68 fixheaders < mbox > mboxfix
69 69 echo % md5sum of 8-bit output
70 70 $TESTDIR/md5sum.py mboxfix
@@ -150,7 +150,7 b' adding description'
150 150 adding utf
151 151 % no mime encoding for email --test
152 152 % md5sum of 8-bit output
153 a6a3c6b9b6009cea23871a7727a282ab mailtest
153 ad877786716d09fd7843cf0ed5e3d2a8 mailtest
154 154 % mime encoded mbox
155 155 This patch series consists of 1 patches.
156 156
@@ -166,6 +166,7 b' Message-Id: <c3c9e37db9f4fe4882cd.240@'
166 166 Date: Thu, 01 Jan 1970 00:04:00 +0000
167 167 From: quux
168 168 To: foo
169 Cc: bar
169 170
170 171 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojIE5vZGUgSUQgYzNj
171 172 OWUzN2RiOWY0ZmU0ODgyY2RhMzliYWY0MmZlZDZiYWQ4YjE1YQojIFBhcmVudCAgZmYyYzlmYTIw
@@ -187,4 +188,4 b' This patch series consists of 1 patches.'
187 188
188 189 Writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ...
189 190 % md5sum of 8-bit output
190 45cb4b77e02f39eb91955f5c95913d66 mboxfix
191 90fae277a4a85255e8262174fcefb59f mboxfix
General Comments 0
You need to be logged in to leave comments. Login now