comparison tests/test-patchbomb.t @ 15546:1346bf5ff901

tests: show actual output in test-patchbomb.t Drop fixheader and decode base64 encoded content and show non-ascii content.
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 22 Nov 2011 01:37:26 +0100
parents bb9ad375b51c
children 7f1d263a1bcb
comparison
equal deleted inserted replaced
15545:2607de602105 15546:1346bf5ff901
1 $ "$TESTDIR/hghave" system-sh || exit 80 1 $ "$TESTDIR/hghave" system-sh || exit 80
2 2
3 $ fixheaders()
4 > {
5 > sed -e 's/\(Message-Id:.*@\).*/\1/' \
6 > -e 's/\(In-Reply-To:.*@\).*/\1/' \
7 > -e 's/\(References:.*@\).*/\1/' \
8 > -e 's/\(User-Agent:.*\)\/.*/\1/' \
9 > -e 's/===.*/===/'
10 > }
11 $ echo "[extensions]" >> $HGRCPATH 3 $ echo "[extensions]" >> $HGRCPATH
12 $ echo "patchbomb=" >> $HGRCPATH 4 $ echo "patchbomb=" >> $HGRCPATH
13 5
14 $ hg init t 6 $ hg init t
15 $ cd t 7 $ cd t
25 Content-Type: text/plain; charset="us-ascii" 17 Content-Type: text/plain; charset="us-ascii"
26 MIME-Version: 1.0 18 MIME-Version: 1.0
27 Content-Transfer-Encoding: 7bit 19 Content-Transfer-Encoding: 7bit
28 Subject: [PATCH] a 20 Subject: [PATCH] a
29 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 21 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
30 Message-Id: <8580ff50825a50c8f716.60@* (glob) 22 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
31 User-Agent: Mercurial-patchbomb/* (glob) 23 User-Agent: Mercurial-patchbomb/* (glob)
32 Date: Thu, 01 Jan 1970 00:01:00 +0000 24 Date: Thu, 01 Jan 1970 00:01:00 +0000
33 From: quux 25 From: quux
34 To: foo 26 To: foo
35 Cc: bar 27 Cc: bar
80 Displaying [PATCH 0 of 2] test ... 72 Displaying [PATCH 0 of 2] test ...
81 Content-Type: text/plain; charset="us-ascii" 73 Content-Type: text/plain; charset="us-ascii"
82 MIME-Version: 1.0 74 MIME-Version: 1.0
83 Content-Transfer-Encoding: 7bit 75 Content-Transfer-Encoding: 7bit
84 Subject: [PATCH 0 of 2] test 76 Subject: [PATCH 0 of 2] test
85 Message-Id: <patchbomb\.120@[^>]*> (re) 77 Message-Id: <patchbomb.120@*> (glob)
86 User-Agent: Mercurial-patchbomb/* (glob) 78 User-Agent: Mercurial-patchbomb/* (glob)
87 Date: Thu, 01 Jan 1970 00:02:00 +0000 79 Date: Thu, 01 Jan 1970 00:02:00 +0000
88 From: quux 80 From: quux
89 To: foo 81 To: foo
90 Cc: bar 82 Cc: bar
94 Content-Type: text/plain; charset="us-ascii" 86 Content-Type: text/plain; charset="us-ascii"
95 MIME-Version: 1.0 87 MIME-Version: 1.0
96 Content-Transfer-Encoding: 7bit 88 Content-Transfer-Encoding: 7bit
97 Subject: [PATCH 1 of 2] a 89 Subject: [PATCH 1 of 2] a
98 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 90 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
99 Message-Id: <8580ff50825a50c8f716\.121@[^>]*> (re) 91 Message-Id: <8580ff50825a50c8f716.121@*> (glob)
100 In-Reply-To: <patchbomb\.120@[^>]*> (re) 92 In-Reply-To: <patchbomb.120@*> (glob)
101 References: <patchbomb\.120@[^>]*> (re) 93 References: <patchbomb.120@*> (glob)
102 User-Agent: Mercurial-patchbomb/* (glob) 94 User-Agent: Mercurial-patchbomb/* (glob)
103 Date: Thu, 01 Jan 1970 00:02:01 +0000 95 Date: Thu, 01 Jan 1970 00:02:01 +0000
104 From: quux 96 From: quux
105 To: foo 97 To: foo
106 Cc: bar 98 Cc: bar
122 Content-Type: text/plain; charset="us-ascii" 114 Content-Type: text/plain; charset="us-ascii"
123 MIME-Version: 1.0 115 MIME-Version: 1.0
124 Content-Transfer-Encoding: 7bit 116 Content-Transfer-Encoding: 7bit
125 Subject: [PATCH 2 of 2] b 117 Subject: [PATCH 2 of 2] b
126 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 118 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
127 Message-Id: <97d72e5f12c7e84f8506\.122@[^>]*> (re) 119 Message-Id: <97d72e5f12c7e84f8506.122@*> (glob)
128 In-Reply-To: <patchbomb\.120@[^>]*> (re) 120 In-Reply-To: <patchbomb.120@*> (glob)
129 References: <patchbomb\.120@[^>]*> (re) 121 References: <patchbomb.120@*> (glob)
130 User-Agent: Mercurial-patchbomb/* (glob) 122 User-Agent: Mercurial-patchbomb/* (glob)
131 Date: Thu, 01 Jan 1970 00:02:02 +0000 123 Date: Thu, 01 Jan 1970 00:02:02 +0000
132 From: quux 124 From: quux
133 To: foo 125 To: foo
134 Cc: bar 126 Cc: bar
200 > EOF 192 > EOF
201 193
202 194
203 test bundle and description: 195 test bundle and description:
204 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \ 196 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
205 > -c bar -s test -r tip -b --desc description | fixheaders 197 > -c bar -s test -r tip -b --desc description
206 searching for changes 198 searching for changes
207 1 changesets found 199 1 changesets found
208 200
209 Displaying test ... 201 Displaying test ...
210 Content-Type: multipart/mixed; boundary="=== 202 Content-Type: multipart/mixed; boundary="===*" (glob)
211 MIME-Version: 1.0 203 MIME-Version: 1.0
212 Subject: test 204 Subject: test
213 Message-Id: <patchbomb.180@ 205 Message-Id: <patchbomb.180@*> (glob)
214 User-Agent: Mercurial-patchbomb 206 User-Agent: Mercurial-patchbomb/* (glob)
215 Date: Thu, 01 Jan 1970 00:03:00 +0000 207 Date: Thu, 01 Jan 1970 00:03:00 +0000
216 From: quux 208 From: quux
217 To: foo 209 To: foo
218 Cc: bar 210 Cc: bar
219 211
220 --=== 212 --===* (glob)
221 Content-Type: text/plain; charset="us-ascii" 213 Content-Type: text/plain; charset="us-ascii"
222 MIME-Version: 1.0 214 MIME-Version: 1.0
223 Content-Transfer-Encoding: 7bit 215 Content-Transfer-Encoding: 7bit
224 216
225 a multiline 217 a multiline
226 218
227 description 219 description
228 220
229 --=== 221 --===* (glob)
230 Content-Type: application/x-mercurial-bundle 222 Content-Type: application/x-mercurial-bundle
231 MIME-Version: 1.0 223 MIME-Version: 1.0
232 Content-Disposition: attachment; filename="bundle.hg" 224 Content-Disposition: attachment; filename="bundle.hg"
233 Content-Transfer-Encoding: base64 225 Content-Transfer-Encoding: base64
234 226
237 oGgAADQGgAANNANAAAAAAZipFLz3XoakCEQB3PVPyHJVi1iYkAAKQAZQGpQGZESInRnCFMqLDla2 229 oGgAADQGgAANNANAAAAAAZipFLz3XoakCEQB3PVPyHJVi1iYkAAKQAZQGpQGZESInRnCFMqLDla2
238 Bx3qfRQeA2N4lnzKkAmP8kR2asievLLXXebVU8Vg4iEBqcJNJAxIapSU6SM4888ZAciRG6MYAIEE 230 Bx3qfRQeA2N4lnzKkAmP8kR2asievLLXXebVU8Vg4iEBqcJNJAxIapSU6SM4888ZAciRG6MYAIEE
239 SlIBpFisgGkyRjX//TMtfcUAEsGu56+YnE1OlTZmzKm8BSu2rvo4rHAYYaadIFFuTy0LYgIkgLVD 231 SlIBpFisgGkyRjX//TMtfcUAEsGu56+YnE1OlTZmzKm8BSu2rvo4rHAYYaadIFFuTy0LYgIkgLVD
240 sgVa2F19D1tx9+hgbAygLgQwaIqcDdgA4BjQgIiz/AEP72++llgDKhKducqodGE4B0ETqF3JFOFC 232 sgVa2F19D1tx9+hgbAygLgQwaIqcDdgA4BjQgIiz/AEP72++llgDKhKducqodGE4B0ETqF3JFOFC
241 Q70eyNw= 233 Q70eyNw=
242 --=== 234 --===*-- (glob)
243 235
244 utf-8 patch: 236 utf-8 patch:
245 $ python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();' 237 $ python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
246 $ hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64' 238 $ hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64'
247 adding description 239 adding description
248 adding utf 240 adding utf
249 241
250 no mime encoding for email --test: 242 no mime encoding for email --test:
251 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | fixheaders > mailtest 243 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
252 244 This patch series consists of 1 patches.
253 md5sum of 8-bit output: 245
254 $ $TESTDIR/md5sum.py mailtest 246
255 e726c29b3008e77994c7572563e57c34 mailtest 247 Displaying [PATCH] charset=utf-8; content-transfer-encoding: base64 ...
256 248 Content-Type: text/plain; charset="us-ascii"
257 $ rm mailtest 249 MIME-Version: 1.0
250 Content-Transfer-Encoding: 8bit
251 Subject: [PATCH] charset=utf-8; content-transfer-encoding: base64
252 X-Mercurial-Node: c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
253 Message-Id: <c3c9e37db9f4fe4882cd.240@*> (glob)
254 User-Agent: Mercurial-patchbomb/* (glob)
255 Date: Thu, 01 Jan 1970 00:04:00 +0000
256 From: quux
257 To: foo
258 Cc: bar
259
260 # HG changeset patch
261 # User test
262 # Date 4 0
263 # Node ID c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
264 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
265 charset=utf-8; content-transfer-encoding: base64
266
267 diff -r ff2c9fa2018b -r c3c9e37db9f4 description
268 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
269 +++ b/description Thu Jan 01 00:00:04 1970 +0000
270 @@ -0,0 +1,3 @@
271 +a multiline
272 +
273 +description
274 diff -r ff2c9fa2018b -r c3c9e37db9f4 utf
275 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
276 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
277 @@ -0,0 +1,1 @@
278 +h\xc3\xb6mma! (esc)
279
258 280
259 mime encoded mbox (base64): 281 mime encoded mbox (base64):
260 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox 282 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
261 This patch series consists of 1 patches. 283 This patch series consists of 1 patches.
262 284
268 Content-Type: text/plain; charset="utf-8" 290 Content-Type: text/plain; charset="utf-8"
269 MIME-Version: 1.0 291 MIME-Version: 1.0
270 Content-Transfer-Encoding: base64 292 Content-Transfer-Encoding: base64
271 Subject: [PATCH] charset=utf-8; content-transfer-encoding: base64 293 Subject: [PATCH] charset=utf-8; content-transfer-encoding: base64
272 X-Mercurial-Node: c3c9e37db9f4fe4882cda39baf42fed6bad8b15a 294 X-Mercurial-Node: c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
273 Message-Id: <c3c9e37db9f4fe4882cd.240@* (glob) 295 Message-Id: <c3c9e37db9f4fe4882cd.240@*> (glob)
274 User-Agent: Mercurial-patchbomb/* (glob) 296 User-Agent: Mercurial-patchbomb/* (glob)
275 Date: Thu, 01 Jan 1970 00:04:00 +0000 297 Date: Thu, 01 Jan 1970 00:04:00 +0000
276 From: quux 298 From: quux
277 To: foo 299 To: foo
278 Cc: bar 300 Cc: bar
287 MDE4YiAtciBjM2M5ZTM3ZGI5ZjQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDowMDow 309 MDE4YiAtciBjM2M5ZTM3ZGI5ZjQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDowMDow
288 MCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAKQEAg 310 MCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAKQEAg
289 LTAsMCArMSwxIEBACitow7ZtbWEhCg== 311 LTAsMCArMSwxIEBACitow7ZtbWEhCg==
290 312
291 313
314 $ python -c 'print open("mbox").read().split("\n\n")[1].decode("base64")'
315 # HG changeset patch
316 # User test
317 # Date 4 0
318 # Node ID c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
319 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
320 charset=utf-8; content-transfer-encoding: base64
321
322 diff -r ff2c9fa2018b -r c3c9e37db9f4 description
323 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
324 +++ b/description Thu Jan 01 00:00:04 1970 +0000
325 @@ -0,0 +1,3 @@
326 +a multiline
327 +
328 +description
329 diff -r ff2c9fa2018b -r c3c9e37db9f4 utf
330 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
331 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
332 @@ -0,0 +1,1 @@
333 +h\xc3\xb6mma! (esc)
334
292 $ rm mbox 335 $ rm mbox
293 336
294 mime encoded mbox (quoted-printable): 337 mime encoded mbox (quoted-printable):
295 $ python -c 'fp = open("qp", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();' 338 $ python -c 'fp = open("qp", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
296 $ hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: quoted-printable' 339 $ hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: quoted-printable'
297 adding qp 340 adding qp
298 341
299 no mime encoding for email --test: 342 no mime encoding for email --test:
300 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | \ 343 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
301 > fixheaders > mailtest
302 md5sum of qp output:
303 $ $TESTDIR/md5sum.py mailtest
304 0402c7d033e04044e423bb04816f9dae mailtest
305 $ rm mailtest
306
307 mime encoded mbox (quoted-printable):
308 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
309 This patch series consists of 1 patches. 344 This patch series consists of 1 patches.
310 345
311 346
312 Writing [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable ... 347 Displaying [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable ...
313 $ cat mbox | fixheaders
314 From quux Thu Jan 01 00:04:01 1970
315 Content-Type: text/plain; charset="us-ascii" 348 Content-Type: text/plain; charset="us-ascii"
316 MIME-Version: 1.0 349 MIME-Version: 1.0
317 Content-Transfer-Encoding: quoted-printable 350 Content-Transfer-Encoding: quoted-printable
318 Subject: [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable 351 Subject: [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable
319 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376 352 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
320 Message-Id: <c655633f8c87700bb38c.240@ 353 Message-Id: <c655633f8c87700bb38c.240@*> (glob)
321 User-Agent: Mercurial-patchbomb 354 User-Agent: Mercurial-patchbomb/* (glob)
322 Date: Thu, 01 Jan 1970 00:04:00 +0000 355 Date: Thu, 01 Jan 1970 00:04:00 +0000
323 From: quux 356 From: quux
324 To: foo 357 To: foo
325 Cc: bar 358 Cc: bar
326 359
351 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 384 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
352 +foo 385 +foo
353 + 386 +
354 +bar 387 +bar
355 388
389
390 mime encoded mbox (quoted-printable):
391 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
392 This patch series consists of 1 patches.
393
394
395 Writing [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable ...
396 $ cat mbox
397 From quux Thu Jan 01 00:04:01 1970
398 Content-Type: text/plain; charset="us-ascii"
399 MIME-Version: 1.0
400 Content-Transfer-Encoding: quoted-printable
401 Subject: [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable
402 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
403 Message-Id: <c655633f8c87700bb38c.240@*> (glob)
404 User-Agent: Mercurial-patchbomb/* (glob)
405 Date: Thu, 01 Jan 1970 00:04:00 +0000
406 From: quux
407 To: foo
408 Cc: bar
409
410 # HG changeset patch
411 # User test
412 # Date 4 0
413 # Node ID c655633f8c87700bb38cc6a59a2753bdc5a6c376
414 # Parent c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
415 charset=3Dutf-8; content-transfer-encoding: quoted-printable
416
417 diff -r c3c9e37db9f4 -r c655633f8c87 qp
418 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
419 +++ b/qp Thu Jan 01 00:00:04 1970 +0000
420 @@ -0,0 +1,4 @@
421 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
422 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
423 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
424 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
425 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
426 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
427 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
428 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
429 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
430 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
431 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
432 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
433 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
434 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
435 +foo
436 +
437 +bar
438
356 439
357 440
358 $ rm mbox 441 $ rm mbox
359 442
360 iso-8859-1 patch: 443 iso-8859-1 patch:
366 $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox 449 $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
367 This patch series consists of 1 patches. 450 This patch series consists of 1 patches.
368 451
369 452
370 Writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ... 453 Writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ...
371 $ fixheaders < mbox > mboxfix 454 $ cat mbox
372 455 From quux Thu Jan 01 00:05:01 1970
373 md5sum of 8-bit output: 456 Content-Type: text/plain; charset="us-ascii"
374 $ $TESTDIR/md5sum.py mboxfix 457 MIME-Version: 1.0
375 9ea043d8fc43a71045114508baed144b mboxfix 458 Content-Transfer-Encoding: 8bit
459 Subject: [PATCH] charset=us-ascii; content-transfer-encoding: 8bit
460 X-Mercurial-Node: 22d0f96be12f5945fd67d101af58f7bc8263c835
461 Message-Id: <22d0f96be12f5945fd67.300@*> (glob)
462 User-Agent: Mercurial-patchbomb/* (glob)
463 Date: Thu, 01 Jan 1970 00:05:00 +0000
464 From: quux
465 To: foo
466 Cc: bar
467
468 # HG changeset patch
469 # User test
470 # Date 5 0
471 # Node ID 22d0f96be12f5945fd67d101af58f7bc8263c835
472 # Parent c655633f8c87700bb38cc6a59a2753bdc5a6c376
473 charset=us-ascii; content-transfer-encoding: 8bit
474
475 diff -r c655633f8c87 -r 22d0f96be12f isolatin
476 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
477 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
478 @@ -0,0 +1,1 @@
479 +h\xf6mma! (esc)
480
481
376 482
377 test diffstat for single patch: 483 test diffstat for single patch:
378 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2 | \ 484 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
379 > fixheaders
380 This patch series consists of 1 patches. 485 This patch series consists of 1 patches.
381 486
382 487
383 Final summary: 488 Final summary:
384 489
395 Content-Type: text/plain; charset="us-ascii" 500 Content-Type: text/plain; charset="us-ascii"
396 MIME-Version: 1.0 501 MIME-Version: 1.0
397 Content-Transfer-Encoding: 7bit 502 Content-Transfer-Encoding: 7bit
398 Subject: [PATCH] test 503 Subject: [PATCH] test
399 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 504 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
400 Message-Id: <ff2c9fa2018b15fa74b3.60@ 505 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
401 User-Agent: Mercurial-patchbomb 506 User-Agent: Mercurial-patchbomb/* (glob)
402 Date: Thu, 01 Jan 1970 00:01:00 +0000 507 Date: Thu, 01 Jan 1970 00:01:00 +0000
403 From: quux 508 From: quux
404 To: foo 509 To: foo
405 Cc: bar 510 Cc: bar
406 511
422 +c 527 +c
423 528
424 529
425 test diffstat for multiple patches: 530 test diffstat for multiple patches:
426 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \ 531 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
427 > -r 0:1 | fixheaders 532 > -r 0:1
428 This patch series consists of 2 patches. 533 This patch series consists of 2 patches.
429 534
430 535
431 Write the introductory message for the patch series. 536 Write the introductory message for the patch series.
432 537
452 Displaying [PATCH 0 of 2] test ... 557 Displaying [PATCH 0 of 2] test ...
453 Content-Type: text/plain; charset="us-ascii" 558 Content-Type: text/plain; charset="us-ascii"
454 MIME-Version: 1.0 559 MIME-Version: 1.0
455 Content-Transfer-Encoding: 7bit 560 Content-Transfer-Encoding: 7bit
456 Subject: [PATCH 0 of 2] test 561 Subject: [PATCH 0 of 2] test
457 Message-Id: <patchbomb.60@ 562 Message-Id: <patchbomb.60@*> (glob)
458 User-Agent: Mercurial-patchbomb 563 User-Agent: Mercurial-patchbomb/* (glob)
459 Date: Thu, 01 Jan 1970 00:01:00 +0000 564 Date: Thu, 01 Jan 1970 00:01:00 +0000
460 From: quux 565 From: quux
461 To: foo 566 To: foo
462 Cc: bar 567 Cc: bar
463 568
470 Content-Type: text/plain; charset="us-ascii" 575 Content-Type: text/plain; charset="us-ascii"
471 MIME-Version: 1.0 576 MIME-Version: 1.0
472 Content-Transfer-Encoding: 7bit 577 Content-Transfer-Encoding: 7bit
473 Subject: [PATCH 1 of 2] a 578 Subject: [PATCH 1 of 2] a
474 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 579 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
475 Message-Id: <8580ff50825a50c8f716.61@ 580 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
476 In-Reply-To: <patchbomb.60@ 581 In-Reply-To: <patchbomb.60@*> (glob)
477 References: <patchbomb.60@ 582 References: <patchbomb.60@*> (glob)
478 User-Agent: Mercurial-patchbomb 583 User-Agent: Mercurial-patchbomb/* (glob)
479 Date: Thu, 01 Jan 1970 00:01:01 +0000 584 Date: Thu, 01 Jan 1970 00:01:01 +0000
480 From: quux 585 From: quux
481 To: foo 586 To: foo
482 Cc: bar 587 Cc: bar
483 588
502 Content-Type: text/plain; charset="us-ascii" 607 Content-Type: text/plain; charset="us-ascii"
503 MIME-Version: 1.0 608 MIME-Version: 1.0
504 Content-Transfer-Encoding: 7bit 609 Content-Transfer-Encoding: 7bit
505 Subject: [PATCH 2 of 2] b 610 Subject: [PATCH 2 of 2] b
506 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 611 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
507 Message-Id: <97d72e5f12c7e84f8506.62@ 612 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
508 In-Reply-To: <patchbomb.60@ 613 In-Reply-To: <patchbomb.60@*> (glob)
509 References: <patchbomb.60@ 614 References: <patchbomb.60@*> (glob)
510 User-Agent: Mercurial-patchbomb 615 User-Agent: Mercurial-patchbomb/* (glob)
511 Date: Thu, 01 Jan 1970 00:01:02 +0000 616 Date: Thu, 01 Jan 1970 00:01:02 +0000
512 From: quux 617 From: quux
513 To: foo 618 To: foo
514 Cc: bar 619 Cc: bar
515 620
530 @@ -0,0 +1,1 @@ 635 @@ -0,0 +1,1 @@
531 +b 636 +b
532 637
533 638
534 test inline for single patch: 639 test inline for single patch:
535 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | \ 640 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
536 > fixheaders
537 This patch series consists of 1 patches. 641 This patch series consists of 1 patches.
538 642
539 643
540 Displaying [PATCH] test ... 644 Displaying [PATCH] test ...
541 Content-Type: multipart/mixed; boundary="=== 645 Content-Type: multipart/mixed; boundary="===*" (glob)
542 MIME-Version: 1.0 646 MIME-Version: 1.0
543 Subject: [PATCH] test 647 Subject: [PATCH] test
544 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 648 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
545 Message-Id: <ff2c9fa2018b15fa74b3.60@ 649 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
546 User-Agent: Mercurial-patchbomb 650 User-Agent: Mercurial-patchbomb/* (glob)
547 Date: Thu, 01 Jan 1970 00:01:00 +0000 651 Date: Thu, 01 Jan 1970 00:01:00 +0000
548 From: quux 652 From: quux
549 To: foo 653 To: foo
550 Cc: bar 654 Cc: bar
551 655
552 --=== 656 --===* (glob)
553 Content-Type: text/x-patch; charset="us-ascii" 657 Content-Type: text/x-patch; charset="us-ascii"
554 MIME-Version: 1.0 658 MIME-Version: 1.0
555 Content-Transfer-Encoding: 7bit 659 Content-Transfer-Encoding: 7bit
556 Content-Disposition: inline; filename=t2.patch 660 Content-Disposition: inline; filename=t2.patch
557 661
566 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 670 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
567 +++ b/c Thu Jan 01 00:00:03 1970 +0000 671 +++ b/c Thu Jan 01 00:00:03 1970 +0000
568 @@ -0,0 +1,1 @@ 672 @@ -0,0 +1,1 @@
569 +c 673 +c
570 674
571 --=== 675 --===*-- (glob)
572 676
573 677
574 test inline for single patch (quoted-printable): 678 test inline for single patch (quoted-printable):
575 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | \ 679 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4
576 > fixheaders
577 This patch series consists of 1 patches. 680 This patch series consists of 1 patches.
578 681
579 682
580 Displaying [PATCH] test ... 683 Displaying [PATCH] test ...
581 Content-Type: multipart/mixed; boundary="=== 684 Content-Type: multipart/mixed; boundary="===*" (glob)
582 MIME-Version: 1.0 685 MIME-Version: 1.0
583 Subject: [PATCH] test 686 Subject: [PATCH] test
584 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376 687 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
585 Message-Id: <c655633f8c87700bb38c.60@ 688 Message-Id: <c655633f8c87700bb38c.60@*> (glob)
586 User-Agent: Mercurial-patchbomb 689 User-Agent: Mercurial-patchbomb/* (glob)
587 Date: Thu, 01 Jan 1970 00:01:00 +0000 690 Date: Thu, 01 Jan 1970 00:01:00 +0000
588 From: quux 691 From: quux
589 To: foo 692 To: foo
590 Cc: bar 693 Cc: bar
591 694
592 --=== 695 --===* (glob)
593 Content-Type: text/x-patch; charset="us-ascii" 696 Content-Type: text/x-patch; charset="us-ascii"
594 MIME-Version: 1.0 697 MIME-Version: 1.0
595 Content-Transfer-Encoding: quoted-printable 698 Content-Transfer-Encoding: quoted-printable
596 Content-Disposition: inline; filename=t2.patch 699 Content-Disposition: inline; filename=t2.patch
597 700
622 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 725 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
623 +foo 726 +foo
624 + 727 +
625 +bar 728 +bar
626 729
627 --=== 730 --===*-- (glob)
628 731
629 test inline for multiple patches: 732 test inline for multiple patches:
630 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \ 733 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
631 > -r 0:1 -r 4 | fixheaders 734 > -r 0:1 -r 4
632 This patch series consists of 3 patches. 735 This patch series consists of 3 patches.
633 736
634 737
635 Write the introductory message for the patch series. 738 Write the introductory message for the patch series.
636 739
638 Displaying [PATCH 0 of 3] test ... 741 Displaying [PATCH 0 of 3] test ...
639 Content-Type: text/plain; charset="us-ascii" 742 Content-Type: text/plain; charset="us-ascii"
640 MIME-Version: 1.0 743 MIME-Version: 1.0
641 Content-Transfer-Encoding: 7bit 744 Content-Transfer-Encoding: 7bit
642 Subject: [PATCH 0 of 3] test 745 Subject: [PATCH 0 of 3] test
643 Message-Id: <patchbomb.60@ 746 Message-Id: <patchbomb.60@*> (glob)
644 User-Agent: Mercurial-patchbomb 747 User-Agent: Mercurial-patchbomb/* (glob)
645 Date: Thu, 01 Jan 1970 00:01:00 +0000 748 Date: Thu, 01 Jan 1970 00:01:00 +0000
646 From: quux 749 From: quux
647 To: foo 750 To: foo
648 Cc: bar 751 Cc: bar
649 752
650 753
651 Displaying [PATCH 1 of 3] a ... 754 Displaying [PATCH 1 of 3] a ...
652 Content-Type: multipart/mixed; boundary="=== 755 Content-Type: multipart/mixed; boundary="===*" (glob)
653 MIME-Version: 1.0 756 MIME-Version: 1.0
654 Subject: [PATCH 1 of 3] a 757 Subject: [PATCH 1 of 3] a
655 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 758 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
656 Message-Id: <8580ff50825a50c8f716.61@ 759 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
657 In-Reply-To: <patchbomb.60@ 760 In-Reply-To: <patchbomb.60@*> (glob)
658 References: <patchbomb.60@ 761 References: <patchbomb.60@*> (glob)
659 User-Agent: Mercurial-patchbomb 762 User-Agent: Mercurial-patchbomb/* (glob)
660 Date: Thu, 01 Jan 1970 00:01:01 +0000 763 Date: Thu, 01 Jan 1970 00:01:01 +0000
661 From: quux 764 From: quux
662 To: foo 765 To: foo
663 Cc: bar 766 Cc: bar
664 767
665 --=== 768 --===* (glob)
666 Content-Type: text/x-patch; charset="us-ascii" 769 Content-Type: text/x-patch; charset="us-ascii"
667 MIME-Version: 1.0 770 MIME-Version: 1.0
668 Content-Transfer-Encoding: 7bit 771 Content-Transfer-Encoding: 7bit
669 Content-Disposition: inline; filename=t2-1.patch 772 Content-Disposition: inline; filename=t2-1.patch
670 773
679 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 782 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
680 +++ b/a Thu Jan 01 00:00:01 1970 +0000 783 +++ b/a Thu Jan 01 00:00:01 1970 +0000
681 @@ -0,0 +1,1 @@ 784 @@ -0,0 +1,1 @@
682 +a 785 +a
683 786
684 --=== 787 --===*-- (glob)
685 Displaying [PATCH 2 of 3] b ... 788 Displaying [PATCH 2 of 3] b ...
686 Content-Type: multipart/mixed; boundary="=== 789 Content-Type: multipart/mixed; boundary="===*" (glob)
687 MIME-Version: 1.0 790 MIME-Version: 1.0
688 Subject: [PATCH 2 of 3] b 791 Subject: [PATCH 2 of 3] b
689 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 792 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
690 Message-Id: <97d72e5f12c7e84f8506.62@ 793 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
691 In-Reply-To: <patchbomb.60@ 794 In-Reply-To: <patchbomb.60@*> (glob)
692 References: <patchbomb.60@ 795 References: <patchbomb.60@*> (glob)
693 User-Agent: Mercurial-patchbomb 796 User-Agent: Mercurial-patchbomb/* (glob)
694 Date: Thu, 01 Jan 1970 00:01:02 +0000 797 Date: Thu, 01 Jan 1970 00:01:02 +0000
695 From: quux 798 From: quux
696 To: foo 799 To: foo
697 Cc: bar 800 Cc: bar
698 801
699 --=== 802 --===* (glob)
700 Content-Type: text/x-patch; charset="us-ascii" 803 Content-Type: text/x-patch; charset="us-ascii"
701 MIME-Version: 1.0 804 MIME-Version: 1.0
702 Content-Transfer-Encoding: 7bit 805 Content-Transfer-Encoding: 7bit
703 Content-Disposition: inline; filename=t2-2.patch 806 Content-Disposition: inline; filename=t2-2.patch
704 807
713 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 816 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
714 +++ b/b Thu Jan 01 00:00:02 1970 +0000 817 +++ b/b Thu Jan 01 00:00:02 1970 +0000
715 @@ -0,0 +1,1 @@ 818 @@ -0,0 +1,1 @@
716 +b 819 +b
717 820
718 --=== 821 --===*-- (glob)
719 Displaying [PATCH 3 of 3] charset=utf-8; content-transfer-encoding: quoted-printable ... 822 Displaying [PATCH 3 of 3] charset=utf-8; content-transfer-encoding: quoted-printable ...
720 Content-Type: multipart/mixed; boundary="=== 823 Content-Type: multipart/mixed; boundary="===*" (glob)
721 MIME-Version: 1.0 824 MIME-Version: 1.0
722 Subject: [PATCH 3 of 3] charset=utf-8; 825 Subject: [PATCH 3 of 3] charset=utf-8;
723 content-transfer-encoding: quoted-printable 826 content-transfer-encoding: quoted-printable
724 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376 827 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
725 Message-Id: <c655633f8c87700bb38c.63@ 828 Message-Id: <c655633f8c87700bb38c.63@*> (glob)
726 In-Reply-To: <patchbomb.60@ 829 In-Reply-To: <patchbomb.60@*> (glob)
727 References: <patchbomb.60@ 830 References: <patchbomb.60@*> (glob)
728 User-Agent: Mercurial-patchbomb 831 User-Agent: Mercurial-patchbomb/* (glob)
729 Date: Thu, 01 Jan 1970 00:01:03 +0000 832 Date: Thu, 01 Jan 1970 00:01:03 +0000
730 From: quux 833 From: quux
731 To: foo 834 To: foo
732 Cc: bar 835 Cc: bar
733 836
734 --=== 837 --===* (glob)
735 Content-Type: text/x-patch; charset="us-ascii" 838 Content-Type: text/x-patch; charset="us-ascii"
736 MIME-Version: 1.0 839 MIME-Version: 1.0
737 Content-Transfer-Encoding: quoted-printable 840 Content-Transfer-Encoding: quoted-printable
738 Content-Disposition: inline; filename=t2-3.patch 841 Content-Disposition: inline; filename=t2-3.patch
739 842
764 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 867 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
765 +foo 868 +foo
766 + 869 +
767 +bar 870 +bar
768 871
769 --=== 872 --===*-- (glob)
770 873
771 test attach for single patch: 874 test attach for single patch:
772 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | \ 875 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2
773 > fixheaders
774 This patch series consists of 1 patches. 876 This patch series consists of 1 patches.
775 877
776 878
777 Displaying [PATCH] test ... 879 Displaying [PATCH] test ...
778 Content-Type: multipart/mixed; boundary="=== 880 Content-Type: multipart/mixed; boundary="===*" (glob)
779 MIME-Version: 1.0 881 MIME-Version: 1.0
780 Subject: [PATCH] test 882 Subject: [PATCH] test
781 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 883 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
782 Message-Id: <ff2c9fa2018b15fa74b3.60@ 884 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
783 User-Agent: Mercurial-patchbomb 885 User-Agent: Mercurial-patchbomb/* (glob)
784 Date: Thu, 01 Jan 1970 00:01:00 +0000 886 Date: Thu, 01 Jan 1970 00:01:00 +0000
785 From: quux 887 From: quux
786 To: foo 888 To: foo
787 Cc: bar 889 Cc: bar
788 890
789 --=== 891 --===* (glob)
790 Content-Type: text/plain; charset="us-ascii" 892 Content-Type: text/plain; charset="us-ascii"
791 MIME-Version: 1.0 893 MIME-Version: 1.0
792 Content-Transfer-Encoding: 7bit 894 Content-Transfer-Encoding: 7bit
793 895
794 Patch subject is complete summary. 896 Patch subject is complete summary.
795 897
796 898
797 899
798 --=== 900 --===* (glob)
799 Content-Type: text/x-patch; charset="us-ascii" 901 Content-Type: text/x-patch; charset="us-ascii"
800 MIME-Version: 1.0 902 MIME-Version: 1.0
801 Content-Transfer-Encoding: 7bit 903 Content-Transfer-Encoding: 7bit
802 Content-Disposition: attachment; filename=t2.patch 904 Content-Disposition: attachment; filename=t2.patch
803 905
812 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 914 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
813 +++ b/c Thu Jan 01 00:00:03 1970 +0000 915 +++ b/c Thu Jan 01 00:00:03 1970 +0000
814 @@ -0,0 +1,1 @@ 916 @@ -0,0 +1,1 @@
815 +c 917 +c
816 918
817 --=== 919 --===*-- (glob)
818 920
819 test attach for single patch (quoted-printable): 921 test attach for single patch (quoted-printable):
820 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | \ 922 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4
821 > fixheaders
822 This patch series consists of 1 patches. 923 This patch series consists of 1 patches.
823 924
824 925
825 Displaying [PATCH] test ... 926 Displaying [PATCH] test ...
826 Content-Type: multipart/mixed; boundary="=== 927 Content-Type: multipart/mixed; boundary="===*" (glob)
827 MIME-Version: 1.0 928 MIME-Version: 1.0
828 Subject: [PATCH] test 929 Subject: [PATCH] test
829 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376 930 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
830 Message-Id: <c655633f8c87700bb38c.60@ 931 Message-Id: <c655633f8c87700bb38c.60@*> (glob)
831 User-Agent: Mercurial-patchbomb 932 User-Agent: Mercurial-patchbomb/* (glob)
832 Date: Thu, 01 Jan 1970 00:01:00 +0000 933 Date: Thu, 01 Jan 1970 00:01:00 +0000
833 From: quux 934 From: quux
834 To: foo 935 To: foo
835 Cc: bar 936 Cc: bar
836 937
837 --=== 938 --===* (glob)
838 Content-Type: text/plain; charset="us-ascii" 939 Content-Type: text/plain; charset="us-ascii"
839 MIME-Version: 1.0 940 MIME-Version: 1.0
840 Content-Transfer-Encoding: 7bit 941 Content-Transfer-Encoding: 7bit
841 942
842 Patch subject is complete summary. 943 Patch subject is complete summary.
843 944
844 945
845 946
846 --=== 947 --===* (glob)
847 Content-Type: text/x-patch; charset="us-ascii" 948 Content-Type: text/x-patch; charset="us-ascii"
848 MIME-Version: 1.0 949 MIME-Version: 1.0
849 Content-Transfer-Encoding: quoted-printable 950 Content-Transfer-Encoding: quoted-printable
850 Content-Disposition: attachment; filename=t2.patch 951 Content-Disposition: attachment; filename=t2.patch
851 952
876 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 977 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
877 +foo 978 +foo
878 + 979 +
879 +bar 980 +bar
880 981
881 --=== 982 --===*-- (glob)
882 983
883 test attach for multiple patches: 984 test attach for multiple patches:
884 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \ 985 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
885 > -r 0:1 -r 4 | fixheaders 986 > -r 0:1 -r 4
886 This patch series consists of 3 patches. 987 This patch series consists of 3 patches.
887 988
888 989
889 Write the introductory message for the patch series. 990 Write the introductory message for the patch series.
890 991
892 Displaying [PATCH 0 of 3] test ... 993 Displaying [PATCH 0 of 3] test ...
893 Content-Type: text/plain; charset="us-ascii" 994 Content-Type: text/plain; charset="us-ascii"
894 MIME-Version: 1.0 995 MIME-Version: 1.0
895 Content-Transfer-Encoding: 7bit 996 Content-Transfer-Encoding: 7bit
896 Subject: [PATCH 0 of 3] test 997 Subject: [PATCH 0 of 3] test
897 Message-Id: <patchbomb.60@ 998 Message-Id: <patchbomb.60@*> (glob)
898 User-Agent: Mercurial-patchbomb 999 User-Agent: Mercurial-patchbomb/* (glob)
899 Date: Thu, 01 Jan 1970 00:01:00 +0000 1000 Date: Thu, 01 Jan 1970 00:01:00 +0000
900 From: quux 1001 From: quux
901 To: foo 1002 To: foo
902 Cc: bar 1003 Cc: bar
903 1004
904 1005
905 Displaying [PATCH 1 of 3] a ... 1006 Displaying [PATCH 1 of 3] a ...
906 Content-Type: multipart/mixed; boundary="=== 1007 Content-Type: multipart/mixed; boundary="===*" (glob)
907 MIME-Version: 1.0 1008 MIME-Version: 1.0
908 Subject: [PATCH 1 of 3] a 1009 Subject: [PATCH 1 of 3] a
909 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1010 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
910 Message-Id: <8580ff50825a50c8f716.61@ 1011 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
911 In-Reply-To: <patchbomb.60@ 1012 In-Reply-To: <patchbomb.60@*> (glob)
912 References: <patchbomb.60@ 1013 References: <patchbomb.60@*> (glob)
913 User-Agent: Mercurial-patchbomb 1014 User-Agent: Mercurial-patchbomb/* (glob)
914 Date: Thu, 01 Jan 1970 00:01:01 +0000 1015 Date: Thu, 01 Jan 1970 00:01:01 +0000
915 From: quux 1016 From: quux
916 To: foo 1017 To: foo
917 Cc: bar 1018 Cc: bar
918 1019
919 --=== 1020 --===* (glob)
920 Content-Type: text/plain; charset="us-ascii" 1021 Content-Type: text/plain; charset="us-ascii"
921 MIME-Version: 1.0 1022 MIME-Version: 1.0
922 Content-Transfer-Encoding: 7bit 1023 Content-Transfer-Encoding: 7bit
923 1024
924 Patch subject is complete summary. 1025 Patch subject is complete summary.
925 1026
926 1027
927 1028
928 --=== 1029 --===* (glob)
929 Content-Type: text/x-patch; charset="us-ascii" 1030 Content-Type: text/x-patch; charset="us-ascii"
930 MIME-Version: 1.0 1031 MIME-Version: 1.0
931 Content-Transfer-Encoding: 7bit 1032 Content-Transfer-Encoding: 7bit
932 Content-Disposition: attachment; filename=t2-1.patch 1033 Content-Disposition: attachment; filename=t2-1.patch
933 1034
942 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1043 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
943 +++ b/a Thu Jan 01 00:00:01 1970 +0000 1044 +++ b/a Thu Jan 01 00:00:01 1970 +0000
944 @@ -0,0 +1,1 @@ 1045 @@ -0,0 +1,1 @@
945 +a 1046 +a
946 1047
947 --=== 1048 --===*-- (glob)
948 Displaying [PATCH 2 of 3] b ... 1049 Displaying [PATCH 2 of 3] b ...
949 Content-Type: multipart/mixed; boundary="=== 1050 Content-Type: multipart/mixed; boundary="===*" (glob)
950 MIME-Version: 1.0 1051 MIME-Version: 1.0
951 Subject: [PATCH 2 of 3] b 1052 Subject: [PATCH 2 of 3] b
952 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 1053 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
953 Message-Id: <97d72e5f12c7e84f8506.62@ 1054 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
954 In-Reply-To: <patchbomb.60@ 1055 In-Reply-To: <patchbomb.60@*> (glob)
955 References: <patchbomb.60@ 1056 References: <patchbomb.60@*> (glob)
956 User-Agent: Mercurial-patchbomb 1057 User-Agent: Mercurial-patchbomb/* (glob)
957 Date: Thu, 01 Jan 1970 00:01:02 +0000 1058 Date: Thu, 01 Jan 1970 00:01:02 +0000
958 From: quux 1059 From: quux
959 To: foo 1060 To: foo
960 Cc: bar 1061 Cc: bar
961 1062
962 --=== 1063 --===* (glob)
963 Content-Type: text/plain; charset="us-ascii" 1064 Content-Type: text/plain; charset="us-ascii"
964 MIME-Version: 1.0 1065 MIME-Version: 1.0
965 Content-Transfer-Encoding: 7bit 1066 Content-Transfer-Encoding: 7bit
966 1067
967 Patch subject is complete summary. 1068 Patch subject is complete summary.
968 1069
969 1070
970 1071
971 --=== 1072 --===* (glob)
972 Content-Type: text/x-patch; charset="us-ascii" 1073 Content-Type: text/x-patch; charset="us-ascii"
973 MIME-Version: 1.0 1074 MIME-Version: 1.0
974 Content-Transfer-Encoding: 7bit 1075 Content-Transfer-Encoding: 7bit
975 Content-Disposition: attachment; filename=t2-2.patch 1076 Content-Disposition: attachment; filename=t2-2.patch
976 1077
985 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1086 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
986 +++ b/b Thu Jan 01 00:00:02 1970 +0000 1087 +++ b/b Thu Jan 01 00:00:02 1970 +0000
987 @@ -0,0 +1,1 @@ 1088 @@ -0,0 +1,1 @@
988 +b 1089 +b
989 1090
990 --=== 1091 --===*-- (glob)
991 Displaying [PATCH 3 of 3] charset=utf-8; content-transfer-encoding: quoted-printable ... 1092 Displaying [PATCH 3 of 3] charset=utf-8; content-transfer-encoding: quoted-printable ...
992 Content-Type: multipart/mixed; boundary="=== 1093 Content-Type: multipart/mixed; boundary="===*" (glob)
993 MIME-Version: 1.0 1094 MIME-Version: 1.0
994 Subject: [PATCH 3 of 3] charset=utf-8; 1095 Subject: [PATCH 3 of 3] charset=utf-8;
995 content-transfer-encoding: quoted-printable 1096 content-transfer-encoding: quoted-printable
996 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376 1097 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
997 Message-Id: <c655633f8c87700bb38c.63@ 1098 Message-Id: <c655633f8c87700bb38c.63@*> (glob)
998 In-Reply-To: <patchbomb.60@ 1099 In-Reply-To: <patchbomb.60@*> (glob)
999 References: <patchbomb.60@ 1100 References: <patchbomb.60@*> (glob)
1000 User-Agent: Mercurial-patchbomb 1101 User-Agent: Mercurial-patchbomb/* (glob)
1001 Date: Thu, 01 Jan 1970 00:01:03 +0000 1102 Date: Thu, 01 Jan 1970 00:01:03 +0000
1002 From: quux 1103 From: quux
1003 To: foo 1104 To: foo
1004 Cc: bar 1105 Cc: bar
1005 1106
1006 --=== 1107 --===* (glob)
1007 Content-Type: text/plain; charset="us-ascii" 1108 Content-Type: text/plain; charset="us-ascii"
1008 MIME-Version: 1.0 1109 MIME-Version: 1.0
1009 Content-Transfer-Encoding: 7bit 1110 Content-Transfer-Encoding: 7bit
1010 1111
1011 Patch subject is complete summary. 1112 Patch subject is complete summary.
1012 1113
1013 1114
1014 1115
1015 --=== 1116 --===* (glob)
1016 Content-Type: text/x-patch; charset="us-ascii" 1117 Content-Type: text/x-patch; charset="us-ascii"
1017 MIME-Version: 1.0 1118 MIME-Version: 1.0
1018 Content-Transfer-Encoding: quoted-printable 1119 Content-Transfer-Encoding: quoted-printable
1019 Content-Disposition: attachment; filename=t2-3.patch 1120 Content-Disposition: attachment; filename=t2-3.patch
1020 1121
1045 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 1146 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1046 +foo 1147 +foo
1047 + 1148 +
1048 +bar 1149 +bar
1049 1150
1050 --=== 1151 --===*-- (glob)
1051 1152
1052 test intro for single patch: 1153 test intro for single patch:
1053 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ 1154 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1054 > -r 2 | fixheaders 1155 > -r 2
1055 This patch series consists of 1 patches. 1156 This patch series consists of 1 patches.
1056 1157
1057 1158
1058 Write the introductory message for the patch series. 1159 Write the introductory message for the patch series.
1059 1160
1061 Displaying [PATCH 0 of 1] test ... 1162 Displaying [PATCH 0 of 1] test ...
1062 Content-Type: text/plain; charset="us-ascii" 1163 Content-Type: text/plain; charset="us-ascii"
1063 MIME-Version: 1.0 1164 MIME-Version: 1.0
1064 Content-Transfer-Encoding: 7bit 1165 Content-Transfer-Encoding: 7bit
1065 Subject: [PATCH 0 of 1] test 1166 Subject: [PATCH 0 of 1] test
1066 Message-Id: <patchbomb.60@ 1167 Message-Id: <patchbomb.60@*> (glob)
1067 User-Agent: Mercurial-patchbomb 1168 User-Agent: Mercurial-patchbomb/* (glob)
1068 Date: Thu, 01 Jan 1970 00:01:00 +0000 1169 Date: Thu, 01 Jan 1970 00:01:00 +0000
1069 From: quux 1170 From: quux
1070 To: foo 1171 To: foo
1071 Cc: bar 1172 Cc: bar
1072 1173
1075 Content-Type: text/plain; charset="us-ascii" 1176 Content-Type: text/plain; charset="us-ascii"
1076 MIME-Version: 1.0 1177 MIME-Version: 1.0
1077 Content-Transfer-Encoding: 7bit 1178 Content-Transfer-Encoding: 7bit
1078 Subject: [PATCH 1 of 1] c 1179 Subject: [PATCH 1 of 1] c
1079 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 1180 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1080 Message-Id: <ff2c9fa2018b15fa74b3.61@ 1181 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1081 In-Reply-To: <patchbomb.60@ 1182 In-Reply-To: <patchbomb.60@*> (glob)
1082 References: <patchbomb.60@ 1183 References: <patchbomb.60@*> (glob)
1083 User-Agent: Mercurial-patchbomb 1184 User-Agent: Mercurial-patchbomb/* (glob)
1084 Date: Thu, 01 Jan 1970 00:01:01 +0000 1185 Date: Thu, 01 Jan 1970 00:01:01 +0000
1085 From: quux 1186 From: quux
1086 To: foo 1187 To: foo
1087 Cc: bar 1188 Cc: bar
1088 1189
1101 1202
1102 1203
1103 test --desc without --intro for a single patch: 1204 test --desc without --intro for a single patch:
1104 $ echo foo > intro.text 1205 $ echo foo > intro.text
1105 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \ 1206 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1106 > -s test -r 2 | fixheaders 1207 > -s test -r 2
1107 This patch series consists of 1 patches. 1208 This patch series consists of 1 patches.
1108 1209
1109 1210
1110 Displaying [PATCH 0 of 1] test ... 1211 Displaying [PATCH 0 of 1] test ...
1111 Content-Type: text/plain; charset="us-ascii" 1212 Content-Type: text/plain; charset="us-ascii"
1112 MIME-Version: 1.0 1213 MIME-Version: 1.0
1113 Content-Transfer-Encoding: 7bit 1214 Content-Transfer-Encoding: 7bit
1114 Subject: [PATCH 0 of 1] test 1215 Subject: [PATCH 0 of 1] test
1115 Message-Id: <patchbomb.60@ 1216 Message-Id: <patchbomb.60@*> (glob)
1116 User-Agent: Mercurial-patchbomb 1217 User-Agent: Mercurial-patchbomb/* (glob)
1117 Date: Thu, 01 Jan 1970 00:01:00 +0000 1218 Date: Thu, 01 Jan 1970 00:01:00 +0000
1118 From: quux 1219 From: quux
1119 To: foo 1220 To: foo
1120 Cc: bar 1221 Cc: bar
1121 1222
1125 Content-Type: text/plain; charset="us-ascii" 1226 Content-Type: text/plain; charset="us-ascii"
1126 MIME-Version: 1.0 1227 MIME-Version: 1.0
1127 Content-Transfer-Encoding: 7bit 1228 Content-Transfer-Encoding: 7bit
1128 Subject: [PATCH 1 of 1] c 1229 Subject: [PATCH 1 of 1] c
1129 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 1230 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1130 Message-Id: <ff2c9fa2018b15fa74b3.61@ 1231 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1131 In-Reply-To: <patchbomb.60@ 1232 In-Reply-To: <patchbomb.60@*> (glob)
1132 References: <patchbomb.60@ 1233 References: <patchbomb.60@*> (glob)
1133 User-Agent: Mercurial-patchbomb 1234 User-Agent: Mercurial-patchbomb/* (glob)
1134 Date: Thu, 01 Jan 1970 00:01:01 +0000 1235 Date: Thu, 01 Jan 1970 00:01:01 +0000
1135 From: quux 1236 From: quux
1136 To: foo 1237 To: foo
1137 Cc: bar 1238 Cc: bar
1138 1239
1150 +c 1251 +c
1151 1252
1152 1253
1153 test intro for multiple patches: 1254 test intro for multiple patches:
1154 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ 1255 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1155 > -r 0:1 | fixheaders 1256 > -r 0:1
1156 This patch series consists of 2 patches. 1257 This patch series consists of 2 patches.
1157 1258
1158 1259
1159 Write the introductory message for the patch series. 1260 Write the introductory message for the patch series.
1160 1261
1162 Displaying [PATCH 0 of 2] test ... 1263 Displaying [PATCH 0 of 2] test ...
1163 Content-Type: text/plain; charset="us-ascii" 1264 Content-Type: text/plain; charset="us-ascii"
1164 MIME-Version: 1.0 1265 MIME-Version: 1.0
1165 Content-Transfer-Encoding: 7bit 1266 Content-Transfer-Encoding: 7bit
1166 Subject: [PATCH 0 of 2] test 1267 Subject: [PATCH 0 of 2] test
1167 Message-Id: <patchbomb.60@ 1268 Message-Id: <patchbomb.60@*> (glob)
1168 User-Agent: Mercurial-patchbomb 1269 User-Agent: Mercurial-patchbomb/* (glob)
1169 Date: Thu, 01 Jan 1970 00:01:00 +0000 1270 Date: Thu, 01 Jan 1970 00:01:00 +0000
1170 From: quux 1271 From: quux
1171 To: foo 1272 To: foo
1172 Cc: bar 1273 Cc: bar
1173 1274
1176 Content-Type: text/plain; charset="us-ascii" 1277 Content-Type: text/plain; charset="us-ascii"
1177 MIME-Version: 1.0 1278 MIME-Version: 1.0
1178 Content-Transfer-Encoding: 7bit 1279 Content-Transfer-Encoding: 7bit
1179 Subject: [PATCH 1 of 2] a 1280 Subject: [PATCH 1 of 2] a
1180 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1281 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1181 Message-Id: <8580ff50825a50c8f716.61@ 1282 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1182 In-Reply-To: <patchbomb.60@ 1283 In-Reply-To: <patchbomb.60@*> (glob)
1183 References: <patchbomb.60@ 1284 References: <patchbomb.60@*> (glob)
1184 User-Agent: Mercurial-patchbomb 1285 User-Agent: Mercurial-patchbomb/* (glob)
1185 Date: Thu, 01 Jan 1970 00:01:01 +0000 1286 Date: Thu, 01 Jan 1970 00:01:01 +0000
1186 From: quux 1287 From: quux
1187 To: foo 1288 To: foo
1188 Cc: bar 1289 Cc: bar
1189 1290
1204 Content-Type: text/plain; charset="us-ascii" 1305 Content-Type: text/plain; charset="us-ascii"
1205 MIME-Version: 1.0 1306 MIME-Version: 1.0
1206 Content-Transfer-Encoding: 7bit 1307 Content-Transfer-Encoding: 7bit
1207 Subject: [PATCH 2 of 2] b 1308 Subject: [PATCH 2 of 2] b
1208 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 1309 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1209 Message-Id: <97d72e5f12c7e84f8506.62@ 1310 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1210 In-Reply-To: <patchbomb.60@ 1311 In-Reply-To: <patchbomb.60@*> (glob)
1211 References: <patchbomb.60@ 1312 References: <patchbomb.60@*> (glob)
1212 User-Agent: Mercurial-patchbomb 1313 User-Agent: Mercurial-patchbomb/* (glob)
1213 Date: Thu, 01 Jan 1970 00:01:02 +0000 1314 Date: Thu, 01 Jan 1970 00:01:02 +0000
1214 From: quux 1315 From: quux
1215 To: foo 1316 To: foo
1216 Cc: bar 1317 Cc: bar
1217 1318
1229 +b 1330 +b
1230 1331
1231 1332
1232 test reply-to via config: 1333 test reply-to via config:
1233 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \ 1334 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1234 > --config patchbomb.reply-to='baz@example.com' | fixheaders 1335 > --config patchbomb.reply-to='baz@example.com'
1235 This patch series consists of 1 patches. 1336 This patch series consists of 1 patches.
1236 1337
1237 1338
1238 Displaying [PATCH] test ... 1339 Displaying [PATCH] test ...
1239 Content-Type: text/plain; charset="us-ascii" 1340 Content-Type: text/plain; charset="us-ascii"
1240 MIME-Version: 1.0 1341 MIME-Version: 1.0
1241 Content-Transfer-Encoding: 7bit 1342 Content-Transfer-Encoding: 7bit
1242 Subject: [PATCH] test 1343 Subject: [PATCH] test
1243 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 1344 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1244 Message-Id: <ff2c9fa2018b15fa74b3.60@ 1345 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1245 User-Agent: Mercurial-patchbomb 1346 User-Agent: Mercurial-patchbomb/* (glob)
1246 Date: Thu, 01 Jan 1970 00:01:00 +0000 1347 Date: Thu, 01 Jan 1970 00:01:00 +0000
1247 From: quux 1348 From: quux
1248 To: foo 1349 To: foo
1249 Cc: bar 1350 Cc: bar
1250 Reply-To: baz@example.com 1351 Reply-To: baz@example.com
1263 +c 1364 +c
1264 1365
1265 1366
1266 test reply-to via command line: 1367 test reply-to via command line:
1267 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \ 1368 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1268 > --reply-to baz --reply-to fred | fixheaders 1369 > --reply-to baz --reply-to fred
1269 This patch series consists of 1 patches. 1370 This patch series consists of 1 patches.
1270 1371
1271 1372
1272 Displaying [PATCH] test ... 1373 Displaying [PATCH] test ...
1273 Content-Type: text/plain; charset="us-ascii" 1374 Content-Type: text/plain; charset="us-ascii"
1274 MIME-Version: 1.0 1375 MIME-Version: 1.0
1275 Content-Transfer-Encoding: 7bit 1376 Content-Transfer-Encoding: 7bit
1276 Subject: [PATCH] test 1377 Subject: [PATCH] test
1277 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 1378 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1278 Message-Id: <ff2c9fa2018b15fa74b3.60@ 1379 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1279 User-Agent: Mercurial-patchbomb 1380 User-Agent: Mercurial-patchbomb/* (glob)
1280 Date: Thu, 01 Jan 1970 00:01:00 +0000 1381 Date: Thu, 01 Jan 1970 00:01:00 +0000
1281 From: quux 1382 From: quux
1282 To: foo 1383 To: foo
1283 Cc: bar 1384 Cc: bar
1284 Reply-To: baz, fred 1385 Reply-To: baz, fred
1301 $ hg tag -r0 zero zero.foo 1402 $ hg tag -r0 zero zero.foo
1302 $ hg tag -r1 one one.patch 1403 $ hg tag -r1 one one.patch
1303 $ hg tag -r2 two two.diff 1404 $ hg tag -r2 two two.diff
1304 1405
1305 test inline for single named patch: 1406 test inline for single named patch:
1306 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | \ 1407 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
1307 > fixheaders
1308 This patch series consists of 1 patches. 1408 This patch series consists of 1 patches.
1309 1409
1310 1410
1311 Displaying [PATCH] test ... 1411 Displaying [PATCH] test ...
1312 Content-Type: multipart/mixed; boundary="=== 1412 Content-Type: multipart/mixed; boundary="===*" (glob)
1313 MIME-Version: 1.0 1413 MIME-Version: 1.0
1314 Subject: [PATCH] test 1414 Subject: [PATCH] test
1315 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 1415 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1316 Message-Id: <ff2c9fa2018b15fa74b3.60@ 1416 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1317 User-Agent: Mercurial-patchbomb 1417 User-Agent: Mercurial-patchbomb/* (glob)
1318 Date: Thu, 01 Jan 1970 00:01:00 +0000 1418 Date: Thu, 01 Jan 1970 00:01:00 +0000
1319 From: quux 1419 From: quux
1320 To: foo 1420 To: foo
1321 Cc: bar 1421 Cc: bar
1322 1422
1323 --=== 1423 --===* (glob)
1324 Content-Type: text/x-patch; charset="us-ascii" 1424 Content-Type: text/x-patch; charset="us-ascii"
1325 MIME-Version: 1.0 1425 MIME-Version: 1.0
1326 Content-Transfer-Encoding: 7bit 1426 Content-Transfer-Encoding: 7bit
1327 Content-Disposition: inline; filename=two.diff 1427 Content-Disposition: inline; filename=two.diff
1328 1428
1337 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1437 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1338 +++ b/c Thu Jan 01 00:00:03 1970 +0000 1438 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1339 @@ -0,0 +1,1 @@ 1439 @@ -0,0 +1,1 @@
1340 +c 1440 +c
1341 1441
1342 --=== 1442 --===*-- (glob)
1343 1443
1344 test inline for multiple named/unnamed patches: 1444 test inline for multiple named/unnamed patches:
1345 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1 | \ 1445 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1
1346 > fixheaders
1347 This patch series consists of 2 patches. 1446 This patch series consists of 2 patches.
1348 1447
1349 1448
1350 Write the introductory message for the patch series. 1449 Write the introductory message for the patch series.
1351 1450
1353 Displaying [PATCH 0 of 2] test ... 1452 Displaying [PATCH 0 of 2] test ...
1354 Content-Type: text/plain; charset="us-ascii" 1453 Content-Type: text/plain; charset="us-ascii"
1355 MIME-Version: 1.0 1454 MIME-Version: 1.0
1356 Content-Transfer-Encoding: 7bit 1455 Content-Transfer-Encoding: 7bit
1357 Subject: [PATCH 0 of 2] test 1456 Subject: [PATCH 0 of 2] test
1358 Message-Id: <patchbomb.60@ 1457 Message-Id: <patchbomb.60@*> (glob)
1359 User-Agent: Mercurial-patchbomb 1458 User-Agent: Mercurial-patchbomb/* (glob)
1360 Date: Thu, 01 Jan 1970 00:01:00 +0000 1459 Date: Thu, 01 Jan 1970 00:01:00 +0000
1361 From: quux 1460 From: quux
1362 To: foo 1461 To: foo
1363 Cc: bar 1462 Cc: bar
1364 1463
1365 1464
1366 Displaying [PATCH 1 of 2] a ... 1465 Displaying [PATCH 1 of 2] a ...
1367 Content-Type: multipart/mixed; boundary="=== 1466 Content-Type: multipart/mixed; boundary="===*" (glob)
1368 MIME-Version: 1.0 1467 MIME-Version: 1.0
1369 Subject: [PATCH 1 of 2] a 1468 Subject: [PATCH 1 of 2] a
1370 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1469 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1371 Message-Id: <8580ff50825a50c8f716.61@ 1470 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1372 In-Reply-To: <patchbomb.60@ 1471 In-Reply-To: <patchbomb.60@*> (glob)
1373 References: <patchbomb.60@ 1472 References: <patchbomb.60@*> (glob)
1374 User-Agent: Mercurial-patchbomb 1473 User-Agent: Mercurial-patchbomb/* (glob)
1375 Date: Thu, 01 Jan 1970 00:01:01 +0000 1474 Date: Thu, 01 Jan 1970 00:01:01 +0000
1376 From: quux 1475 From: quux
1377 To: foo 1476 To: foo
1378 Cc: bar 1477 Cc: bar
1379 1478
1380 --=== 1479 --===* (glob)
1381 Content-Type: text/x-patch; charset="us-ascii" 1480 Content-Type: text/x-patch; charset="us-ascii"
1382 MIME-Version: 1.0 1481 MIME-Version: 1.0
1383 Content-Transfer-Encoding: 7bit 1482 Content-Transfer-Encoding: 7bit
1384 Content-Disposition: inline; filename=t2-1.patch 1483 Content-Disposition: inline; filename=t2-1.patch
1385 1484
1394 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1493 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1395 +++ b/a Thu Jan 01 00:00:01 1970 +0000 1494 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1396 @@ -0,0 +1,1 @@ 1495 @@ -0,0 +1,1 @@
1397 +a 1496 +a
1398 1497
1399 --=== 1498 --===*-- (glob)
1400 Displaying [PATCH 2 of 2] b ... 1499 Displaying [PATCH 2 of 2] b ...
1401 Content-Type: multipart/mixed; boundary="=== 1500 Content-Type: multipart/mixed; boundary="===*" (glob)
1402 MIME-Version: 1.0 1501 MIME-Version: 1.0
1403 Subject: [PATCH 2 of 2] b 1502 Subject: [PATCH 2 of 2] b
1404 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 1503 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1405 Message-Id: <97d72e5f12c7e84f8506.62@ 1504 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1406 In-Reply-To: <patchbomb.60@ 1505 In-Reply-To: <patchbomb.60@*> (glob)
1407 References: <patchbomb.60@ 1506 References: <patchbomb.60@*> (glob)
1408 User-Agent: Mercurial-patchbomb 1507 User-Agent: Mercurial-patchbomb/* (glob)
1409 Date: Thu, 01 Jan 1970 00:01:02 +0000 1508 Date: Thu, 01 Jan 1970 00:01:02 +0000
1410 From: quux 1509 From: quux
1411 To: foo 1510 To: foo
1412 Cc: bar 1511 Cc: bar
1413 1512
1414 --=== 1513 --===* (glob)
1415 Content-Type: text/x-patch; charset="us-ascii" 1514 Content-Type: text/x-patch; charset="us-ascii"
1416 MIME-Version: 1.0 1515 MIME-Version: 1.0
1417 Content-Transfer-Encoding: 7bit 1516 Content-Transfer-Encoding: 7bit
1418 Content-Disposition: inline; filename=one.patch 1517 Content-Disposition: inline; filename=one.patch
1419 1518
1428 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1527 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1429 +++ b/b Thu Jan 01 00:00:02 1970 +0000 1528 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1430 @@ -0,0 +1,1 @@ 1529 @@ -0,0 +1,1 @@
1431 +b 1530 +b
1432 1531
1433 --=== 1532 --===*-- (glob)
1434 1533
1435 1534
1436 test inreplyto: 1535 test inreplyto:
1437 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \ 1536 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1438 > -r tip | fixheaders 1537 > -r tip
1439 This patch series consists of 1 patches. 1538 This patch series consists of 1 patches.
1440 1539
1441 1540
1442 Displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ... 1541 Displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1443 Content-Type: text/plain; charset="us-ascii" 1542 Content-Type: text/plain; charset="us-ascii"
1444 MIME-Version: 1.0 1543 MIME-Version: 1.0
1445 Content-Transfer-Encoding: 7bit 1544 Content-Transfer-Encoding: 7bit
1446 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b 1545 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1447 X-Mercurial-Node: e317db6a6f288748d1f6cb064f3810fcba66b1b6 1546 X-Mercurial-Node: e317db6a6f288748d1f6cb064f3810fcba66b1b6
1448 Message-Id: <e317db6a6f288748d1f6.60@ 1547 Message-Id: <e317db6a6f288748d1f6.60@*> (glob)
1449 In-Reply-To: <baz> 1548 In-Reply-To: <baz>
1450 References: <baz> 1549 References: <baz>
1451 User-Agent: Mercurial-patchbomb 1550 User-Agent: Mercurial-patchbomb/* (glob)
1452 Date: Thu, 01 Jan 1970 00:01:00 +0000 1551 Date: Thu, 01 Jan 1970 00:01:00 +0000
1453 From: quux 1552 From: quux
1454 To: foo 1553 To: foo
1455 Cc: bar 1554 Cc: bar
1456 1555
1471 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two 1570 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1472 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff 1571 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1473 1572
1474 no intro message in non-interactive mode 1573 no intro message in non-interactive mode
1475 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \ 1574 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1476 > -r 0:1 | fixheaders 1575 > -r 0:1
1477 This patch series consists of 2 patches. 1576 This patch series consists of 2 patches.
1478 1577
1479 Subject: [PATCH 0 of 2] 1578 Subject: [PATCH 0 of 2]
1480 1579
1481 Displaying [PATCH 1 of 2] a ... 1580 Displaying [PATCH 1 of 2] a ...
1482 Content-Type: text/plain; charset="us-ascii" 1581 Content-Type: text/plain; charset="us-ascii"
1483 MIME-Version: 1.0 1582 MIME-Version: 1.0
1484 Content-Transfer-Encoding: 7bit 1583 Content-Transfer-Encoding: 7bit
1485 Subject: [PATCH 1 of 2] a 1584 Subject: [PATCH 1 of 2] a
1486 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1585 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1487 Message-Id: <8580ff50825a50c8f716.60@ 1586 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
1488 In-Reply-To: <baz> 1587 In-Reply-To: <baz>
1489 References: <baz> 1588 References: <baz>
1490 User-Agent: Mercurial-patchbomb 1589 User-Agent: Mercurial-patchbomb/* (glob)
1491 Date: Thu, 01 Jan 1970 00:01:00 +0000 1590 Date: Thu, 01 Jan 1970 00:01:00 +0000
1492 From: quux 1591 From: quux
1493 To: foo 1592 To: foo
1494 Cc: bar 1593 Cc: bar
1495 1594
1510 Content-Type: text/plain; charset="us-ascii" 1609 Content-Type: text/plain; charset="us-ascii"
1511 MIME-Version: 1.0 1610 MIME-Version: 1.0
1512 Content-Transfer-Encoding: 7bit 1611 Content-Transfer-Encoding: 7bit
1513 Subject: [PATCH 2 of 2] b 1612 Subject: [PATCH 2 of 2] b
1514 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 1613 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1515 Message-Id: <97d72e5f12c7e84f8506.61@ 1614 Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
1516 In-Reply-To: <8580ff50825a50c8f716.60@ 1615 In-Reply-To: <8580ff50825a50c8f716.60@*> (glob)
1517 References: <8580ff50825a50c8f716.60@ 1616 References: <8580ff50825a50c8f716.60@*> (glob)
1518 User-Agent: Mercurial-patchbomb 1617 User-Agent: Mercurial-patchbomb/* (glob)
1519 Date: Thu, 01 Jan 1970 00:01:01 +0000 1618 Date: Thu, 01 Jan 1970 00:01:01 +0000
1520 From: quux 1619 From: quux
1521 To: foo 1620 To: foo
1522 Cc: bar 1621 Cc: bar
1523 1622
1536 1635
1537 1636
1538 1637
1539 1638
1540 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \ 1639 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1541 > -s test -r 0:1 | fixheaders 1640 > -s test -r 0:1
1542 This patch series consists of 2 patches. 1641 This patch series consists of 2 patches.
1543 1642
1544 1643
1545 Write the introductory message for the patch series. 1644 Write the introductory message for the patch series.
1546 1645
1548 Displaying [PATCH 0 of 2] test ... 1647 Displaying [PATCH 0 of 2] test ...
1549 Content-Type: text/plain; charset="us-ascii" 1648 Content-Type: text/plain; charset="us-ascii"
1550 MIME-Version: 1.0 1649 MIME-Version: 1.0
1551 Content-Transfer-Encoding: 7bit 1650 Content-Transfer-Encoding: 7bit
1552 Subject: [PATCH 0 of 2] test 1651 Subject: [PATCH 0 of 2] test
1553 Message-Id: <patchbomb.60@ 1652 Message-Id: <patchbomb.60@*> (glob)
1554 In-Reply-To: <baz> 1653 In-Reply-To: <baz>
1555 References: <baz> 1654 References: <baz>
1556 User-Agent: Mercurial-patchbomb 1655 User-Agent: Mercurial-patchbomb/* (glob)
1557 Date: Thu, 01 Jan 1970 00:01:00 +0000 1656 Date: Thu, 01 Jan 1970 00:01:00 +0000
1558 From: quux 1657 From: quux
1559 To: foo 1658 To: foo
1560 Cc: bar 1659 Cc: bar
1561 1660
1564 Content-Type: text/plain; charset="us-ascii" 1663 Content-Type: text/plain; charset="us-ascii"
1565 MIME-Version: 1.0 1664 MIME-Version: 1.0
1566 Content-Transfer-Encoding: 7bit 1665 Content-Transfer-Encoding: 7bit
1567 Subject: [PATCH 1 of 2] a 1666 Subject: [PATCH 1 of 2] a
1568 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1667 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1569 Message-Id: <8580ff50825a50c8f716.61@ 1668 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1570 In-Reply-To: <patchbomb.60@ 1669 In-Reply-To: <patchbomb.60@*> (glob)
1571 References: <patchbomb.60@ 1670 References: <patchbomb.60@*> (glob)
1572 User-Agent: Mercurial-patchbomb 1671 User-Agent: Mercurial-patchbomb/* (glob)
1573 Date: Thu, 01 Jan 1970 00:01:01 +0000 1672 Date: Thu, 01 Jan 1970 00:01:01 +0000
1574 From: quux 1673 From: quux
1575 To: foo 1674 To: foo
1576 Cc: bar 1675 Cc: bar
1577 1676
1592 Content-Type: text/plain; charset="us-ascii" 1691 Content-Type: text/plain; charset="us-ascii"
1593 MIME-Version: 1.0 1692 MIME-Version: 1.0
1594 Content-Transfer-Encoding: 7bit 1693 Content-Transfer-Encoding: 7bit
1595 Subject: [PATCH 2 of 2] b 1694 Subject: [PATCH 2 of 2] b
1596 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 1695 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1597 Message-Id: <97d72e5f12c7e84f8506.62@ 1696 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1598 In-Reply-To: <patchbomb.60@ 1697 In-Reply-To: <patchbomb.60@*> (glob)
1599 References: <patchbomb.60@ 1698 References: <patchbomb.60@*> (glob)
1600 User-Agent: Mercurial-patchbomb 1699 User-Agent: Mercurial-patchbomb/* (glob)
1601 Date: Thu, 01 Jan 1970 00:01:02 +0000 1700 Date: Thu, 01 Jan 1970 00:01:02 +0000
1602 From: quux 1701 From: quux
1603 To: foo 1702 To: foo
1604 Cc: bar 1703 Cc: bar
1605 1704
1617 +b 1716 +b
1618 1717
1619 1718
1620 test single flag for single patch: 1719 test single flag for single patch:
1621 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \ 1720 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
1622 > -r 2 | fixheaders 1721 > -r 2
1623 This patch series consists of 1 patches. 1722 This patch series consists of 1 patches.
1624 1723
1625 1724
1626 Displaying [PATCH fooFlag] test ... 1725 Displaying [PATCH fooFlag] test ...
1627 Content-Type: text/plain; charset="us-ascii" 1726 Content-Type: text/plain; charset="us-ascii"
1628 MIME-Version: 1.0 1727 MIME-Version: 1.0
1629 Content-Transfer-Encoding: 7bit 1728 Content-Transfer-Encoding: 7bit
1630 Subject: [PATCH fooFlag] test 1729 Subject: [PATCH fooFlag] test
1631 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 1730 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1632 Message-Id: <ff2c9fa2018b15fa74b3.60@ 1731 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1633 User-Agent: Mercurial-patchbomb 1732 User-Agent: Mercurial-patchbomb/* (glob)
1634 Date: Thu, 01 Jan 1970 00:01:00 +0000 1733 Date: Thu, 01 Jan 1970 00:01:00 +0000
1635 From: quux 1734 From: quux
1636 To: foo 1735 To: foo
1637 Cc: bar 1736 Cc: bar
1638 1737
1650 +c 1749 +c
1651 1750
1652 1751
1653 test single flag for multiple patches: 1752 test single flag for multiple patches:
1654 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \ 1753 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
1655 > -r 0:1 | fixheaders 1754 > -r 0:1
1656 This patch series consists of 2 patches. 1755 This patch series consists of 2 patches.
1657 1756
1658 1757
1659 Write the introductory message for the patch series. 1758 Write the introductory message for the patch series.
1660 1759
1662 Displaying [PATCH 0 of 2 fooFlag] test ... 1761 Displaying [PATCH 0 of 2 fooFlag] test ...
1663 Content-Type: text/plain; charset="us-ascii" 1762 Content-Type: text/plain; charset="us-ascii"
1664 MIME-Version: 1.0 1763 MIME-Version: 1.0
1665 Content-Transfer-Encoding: 7bit 1764 Content-Transfer-Encoding: 7bit
1666 Subject: [PATCH 0 of 2 fooFlag] test 1765 Subject: [PATCH 0 of 2 fooFlag] test
1667 Message-Id: <patchbomb.60@ 1766 Message-Id: <patchbomb.60@*> (glob)
1668 User-Agent: Mercurial-patchbomb 1767 User-Agent: Mercurial-patchbomb/* (glob)
1669 Date: Thu, 01 Jan 1970 00:01:00 +0000 1768 Date: Thu, 01 Jan 1970 00:01:00 +0000
1670 From: quux 1769 From: quux
1671 To: foo 1770 To: foo
1672 Cc: bar 1771 Cc: bar
1673 1772
1676 Content-Type: text/plain; charset="us-ascii" 1775 Content-Type: text/plain; charset="us-ascii"
1677 MIME-Version: 1.0 1776 MIME-Version: 1.0
1678 Content-Transfer-Encoding: 7bit 1777 Content-Transfer-Encoding: 7bit
1679 Subject: [PATCH 1 of 2 fooFlag] a 1778 Subject: [PATCH 1 of 2 fooFlag] a
1680 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1779 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1681 Message-Id: <8580ff50825a50c8f716.61@ 1780 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1682 In-Reply-To: <patchbomb.60@ 1781 In-Reply-To: <patchbomb.60@*> (glob)
1683 References: <patchbomb.60@ 1782 References: <patchbomb.60@*> (glob)
1684 User-Agent: Mercurial-patchbomb 1783 User-Agent: Mercurial-patchbomb/* (glob)
1685 Date: Thu, 01 Jan 1970 00:01:01 +0000 1784 Date: Thu, 01 Jan 1970 00:01:01 +0000
1686 From: quux 1785 From: quux
1687 To: foo 1786 To: foo
1688 Cc: bar 1787 Cc: bar
1689 1788
1704 Content-Type: text/plain; charset="us-ascii" 1803 Content-Type: text/plain; charset="us-ascii"
1705 MIME-Version: 1.0 1804 MIME-Version: 1.0
1706 Content-Transfer-Encoding: 7bit 1805 Content-Transfer-Encoding: 7bit
1707 Subject: [PATCH 2 of 2 fooFlag] b 1806 Subject: [PATCH 2 of 2 fooFlag] b
1708 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 1807 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1709 Message-Id: <97d72e5f12c7e84f8506.62@ 1808 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1710 In-Reply-To: <patchbomb.60@ 1809 In-Reply-To: <patchbomb.60@*> (glob)
1711 References: <patchbomb.60@ 1810 References: <patchbomb.60@*> (glob)
1712 User-Agent: Mercurial-patchbomb 1811 User-Agent: Mercurial-patchbomb/* (glob)
1713 Date: Thu, 01 Jan 1970 00:01:02 +0000 1812 Date: Thu, 01 Jan 1970 00:01:02 +0000
1714 From: quux 1813 From: quux
1715 To: foo 1814 To: foo
1716 Cc: bar 1815 Cc: bar
1717 1816
1729 +b 1828 +b
1730 1829
1731 1830
1732 test mutiple flags for single patch: 1831 test mutiple flags for single patch:
1733 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \ 1832 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1734 > -c bar -s test -r 2 | fixheaders 1833 > -c bar -s test -r 2
1735 This patch series consists of 1 patches. 1834 This patch series consists of 1 patches.
1736 1835
1737 1836
1738 Displaying [PATCH fooFlag barFlag] test ... 1837 Displaying [PATCH fooFlag barFlag] test ...
1739 Content-Type: text/plain; charset="us-ascii" 1838 Content-Type: text/plain; charset="us-ascii"
1740 MIME-Version: 1.0 1839 MIME-Version: 1.0
1741 Content-Transfer-Encoding: 7bit 1840 Content-Transfer-Encoding: 7bit
1742 Subject: [PATCH fooFlag barFlag] test 1841 Subject: [PATCH fooFlag barFlag] test
1743 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 1842 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1744 Message-Id: <ff2c9fa2018b15fa74b3.60@ 1843 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1745 User-Agent: Mercurial-patchbomb 1844 User-Agent: Mercurial-patchbomb/* (glob)
1746 Date: Thu, 01 Jan 1970 00:01:00 +0000 1845 Date: Thu, 01 Jan 1970 00:01:00 +0000
1747 From: quux 1846 From: quux
1748 To: foo 1847 To: foo
1749 Cc: bar 1848 Cc: bar
1750 1849
1762 +c 1861 +c
1763 1862
1764 1863
1765 test multiple flags for multiple patches: 1864 test multiple flags for multiple patches:
1766 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \ 1865 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1767 > -c bar -s test -r 0:1 | fixheaders 1866 > -c bar -s test -r 0:1
1768 This patch series consists of 2 patches. 1867 This patch series consists of 2 patches.
1769 1868
1770 1869
1771 Write the introductory message for the patch series. 1870 Write the introductory message for the patch series.
1772 1871
1774 Displaying [PATCH 0 of 2 fooFlag barFlag] test ... 1873 Displaying [PATCH 0 of 2 fooFlag barFlag] test ...
1775 Content-Type: text/plain; charset="us-ascii" 1874 Content-Type: text/plain; charset="us-ascii"
1776 MIME-Version: 1.0 1875 MIME-Version: 1.0
1777 Content-Transfer-Encoding: 7bit 1876 Content-Transfer-Encoding: 7bit
1778 Subject: [PATCH 0 of 2 fooFlag barFlag] test 1877 Subject: [PATCH 0 of 2 fooFlag barFlag] test
1779 Message-Id: <patchbomb.60@ 1878 Message-Id: <patchbomb.60@*> (glob)
1780 User-Agent: Mercurial-patchbomb 1879 User-Agent: Mercurial-patchbomb/* (glob)
1781 Date: Thu, 01 Jan 1970 00:01:00 +0000 1880 Date: Thu, 01 Jan 1970 00:01:00 +0000
1782 From: quux 1881 From: quux
1783 To: foo 1882 To: foo
1784 Cc: bar 1883 Cc: bar
1785 1884
1788 Content-Type: text/plain; charset="us-ascii" 1887 Content-Type: text/plain; charset="us-ascii"
1789 MIME-Version: 1.0 1888 MIME-Version: 1.0
1790 Content-Transfer-Encoding: 7bit 1889 Content-Transfer-Encoding: 7bit
1791 Subject: [PATCH 1 of 2 fooFlag barFlag] a 1890 Subject: [PATCH 1 of 2 fooFlag barFlag] a
1792 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1891 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1793 Message-Id: <8580ff50825a50c8f716.61@ 1892 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1794 In-Reply-To: <patchbomb.60@ 1893 In-Reply-To: <patchbomb.60@*> (glob)
1795 References: <patchbomb.60@ 1894 References: <patchbomb.60@*> (glob)
1796 User-Agent: Mercurial-patchbomb 1895 User-Agent: Mercurial-patchbomb/* (glob)
1797 Date: Thu, 01 Jan 1970 00:01:01 +0000 1896 Date: Thu, 01 Jan 1970 00:01:01 +0000
1798 From: quux 1897 From: quux
1799 To: foo 1898 To: foo
1800 Cc: bar 1899 Cc: bar
1801 1900
1816 Content-Type: text/plain; charset="us-ascii" 1915 Content-Type: text/plain; charset="us-ascii"
1817 MIME-Version: 1.0 1916 MIME-Version: 1.0
1818 Content-Transfer-Encoding: 7bit 1917 Content-Transfer-Encoding: 7bit
1819 Subject: [PATCH 2 of 2 fooFlag barFlag] b 1918 Subject: [PATCH 2 of 2 fooFlag barFlag] b
1820 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 1919 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1821 Message-Id: <97d72e5f12c7e84f8506.62@ 1920 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1822 In-Reply-To: <patchbomb.60@ 1921 In-Reply-To: <patchbomb.60@*> (glob)
1823 References: <patchbomb.60@ 1922 References: <patchbomb.60@*> (glob)
1824 User-Agent: Mercurial-patchbomb 1923 User-Agent: Mercurial-patchbomb/* (glob)
1825 Date: Thu, 01 Jan 1970 00:01:02 +0000 1924 Date: Thu, 01 Jan 1970 00:01:02 +0000
1826 From: quux 1925 From: quux
1827 To: foo 1926 To: foo
1828 Cc: bar 1927 Cc: bar
1829 1928
1847 > --config email.bcc='"Quux, A." <quux>' 1946 > --config email.bcc='"Quux, A." <quux>'
1848 This patch series consists of 1 patches. 1947 This patch series consists of 1 patches.
1849 1948
1850 1949
1851 Writing [PATCH] test ... 1950 Writing [PATCH] test ...
1852 $ fixheaders < tmp.mbox 1951 $ cat < tmp.mbox
1853 From quux Tue Jan 01 00:01:01 1980 1952 From quux Tue Jan 01 00:01:01 1980
1854 Content-Type: text/plain; charset="us-ascii" 1953 Content-Type: text/plain; charset="us-ascii"
1855 MIME-Version: 1.0 1954 MIME-Version: 1.0
1856 Content-Transfer-Encoding: 7bit 1955 Content-Transfer-Encoding: 7bit
1857 Subject: [PATCH] test 1956 Subject: [PATCH] test
1858 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1957 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1859 Message-Id: <8580ff50825a50c8f716.315532860@ 1958 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
1860 User-Agent: Mercurial-patchbomb 1959 User-Agent: Mercurial-patchbomb/* (glob)
1861 Date: Tue, 01 Jan 1980 00:01:00 +0000 1960 Date: Tue, 01 Jan 1980 00:01:00 +0000
1862 From: quux 1961 From: quux
1863 To: spam <spam>, eggs, toast 1962 To: spam <spam>, eggs, toast
1864 Cc: foo, bar@example.com, "A, B <>" <a@example.com> 1963 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
1865 Bcc: "Quux, A." <quux> 1964 Bcc: "Quux, A." <quux>
1895 Content-Type: text/plain; charset="us-ascii" 1994 Content-Type: text/plain; charset="us-ascii"
1896 MIME-Version: 1.0 1995 MIME-Version: 1.0
1897 Content-Transfer-Encoding: 7bit 1996 Content-Transfer-Encoding: 7bit
1898 Subject: [PATCH] test 1997 Subject: [PATCH] test
1899 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab 1998 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1900 Message-Id: <8580ff50825a50c8f716.315532860@* (glob) 1999 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
1901 User-Agent: Mercurial-patchbomb/* (glob) 2000 User-Agent: Mercurial-patchbomb/* (glob)
1902 Date: Tue, 01 Jan 1980 00:01:00 +0000 2001 Date: Tue, 01 Jan 1980 00:01:00 +0000
1903 From: quux 2002 From: quux
1904 To: bar@xn--nicode-2ya.com 2003 To: bar@xn--nicode-2ya.com
1905 2004
1942 Displaying [PATCH 0 of 8] test ... 2041 Displaying [PATCH 0 of 8] test ...
1943 Content-Type: text/plain; charset="us-ascii" 2042 Content-Type: text/plain; charset="us-ascii"
1944 MIME-Version: 1.0 2043 MIME-Version: 1.0
1945 Content-Transfer-Encoding: 7bit 2044 Content-Transfer-Encoding: 7bit
1946 Subject: [PATCH 0 of 8] test 2045 Subject: [PATCH 0 of 8] test
1947 Message-Id: <patchbomb.315532860@* (glob) 2046 Message-Id: <patchbomb.315532860@*> (glob)
1948 User-Agent: Mercurial-patchbomb/* (glob) 2047 User-Agent: Mercurial-patchbomb/* (glob)
1949 Date: Tue, 01 Jan 1980 00:01:00 +0000 2048 Date: Tue, 01 Jan 1980 00:01:00 +0000
1950 From: test 2049 From: test
1951 To: foo 2050 To: foo
1952 2051
1955 Content-Type: text/plain; charset="us-ascii" 2054 Content-Type: text/plain; charset="us-ascii"
1956 MIME-Version: 1.0 2055 MIME-Version: 1.0
1957 Content-Transfer-Encoding: 7bit 2056 Content-Transfer-Encoding: 7bit
1958 Subject: [PATCH 1 of 8] c 2057 Subject: [PATCH 1 of 8] c
1959 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f 2058 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1960 Message-Id: <ff2c9fa2018b15fa74b3.315532861@* (glob) 2059 Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
1961 In-Reply-To: <patchbomb\.315532860@[^>]*> (re) 2060 In-Reply-To: <patchbomb.315532860@*> (glob)
1962 References: <patchbomb\.315532860@[^>]*> (re) 2061 References: <patchbomb.315532860@*> (glob)
1963 User-Agent: Mercurial-patchbomb/* (glob) 2062 User-Agent: Mercurial-patchbomb/* (glob)
1964 Date: Tue, 01 Jan 1980 00:01:01 +0000 2063 Date: Tue, 01 Jan 1980 00:01:01 +0000
1965 From: test 2064 From: test
1966 To: foo 2065 To: foo
1967 2066
1982 Content-Type: text/plain; charset="us-ascii" 2081 Content-Type: text/plain; charset="us-ascii"
1983 MIME-Version: 1.0 2082 MIME-Version: 1.0
1984 Content-Transfer-Encoding: 8bit 2083 Content-Transfer-Encoding: 8bit
1985 Subject: [PATCH 2 of 8] charset=utf-8; content-transfer-encoding: base64 2084 Subject: [PATCH 2 of 8] charset=utf-8; content-transfer-encoding: base64
1986 X-Mercurial-Node: c3c9e37db9f4fe4882cda39baf42fed6bad8b15a 2085 X-Mercurial-Node: c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
1987 Message-Id: <c3c9e37db9f4fe4882cd.315532862@* (glob) 2086 Message-Id: <c3c9e37db9f4fe4882cd.315532862@*> (glob)
1988 In-Reply-To: <patchbomb\.315532860@[^>]*> (re) 2087 In-Reply-To: <patchbomb.315532860@*> (glob)
1989 References: <patchbomb\.315532860@[^>]*> (re) 2088 References: <patchbomb.315532860@*> (glob)
1990 User-Agent: Mercurial-patchbomb/* (glob) 2089 User-Agent: Mercurial-patchbomb/* (glob)
1991 Date: Tue, 01 Jan 1980 00:01:02 +0000 2090 Date: Tue, 01 Jan 1980 00:01:02 +0000
1992 From: test 2091 From: test
1993 To: foo 2092 To: foo
1994 2093
2017 MIME-Version: 1.0 2116 MIME-Version: 1.0
2018 Content-Transfer-Encoding: quoted-printable 2117 Content-Transfer-Encoding: quoted-printable
2019 Subject: [PATCH 3 of 8] charset=utf-8; 2118 Subject: [PATCH 3 of 8] charset=utf-8;
2020 content-transfer-encoding: quoted-printable 2119 content-transfer-encoding: quoted-printable
2021 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376 2120 X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
2022 Message-Id: <c655633f8c87700bb38c.315532863@* (glob) 2121 Message-Id: <c655633f8c87700bb38c.315532863@*> (glob)
2023 In-Reply-To: <patchbomb\.315532860@[^>]*> (re) 2122 In-Reply-To: <patchbomb.315532860@*> (glob)
2024 References: <patchbomb\.315532860@[^>]*> (re) 2123 References: <patchbomb.315532860@*> (glob)
2025 User-Agent: Mercurial-patchbomb/* (glob) 2124 User-Agent: Mercurial-patchbomb/* (glob)
2026 Date: Tue, 01 Jan 1980 00:01:03 +0000 2125 Date: Tue, 01 Jan 1980 00:01:03 +0000
2027 From: test 2126 From: test
2028 To: foo 2127 To: foo
2029 2128
2060 Content-Type: text/plain; charset="us-ascii" 2159 Content-Type: text/plain; charset="us-ascii"
2061 MIME-Version: 1.0 2160 MIME-Version: 1.0
2062 Content-Transfer-Encoding: 8bit 2161 Content-Transfer-Encoding: 8bit
2063 Subject: [PATCH 4 of 8] charset=us-ascii; content-transfer-encoding: 8bit 2162 Subject: [PATCH 4 of 8] charset=us-ascii; content-transfer-encoding: 8bit
2064 X-Mercurial-Node: 22d0f96be12f5945fd67d101af58f7bc8263c835 2163 X-Mercurial-Node: 22d0f96be12f5945fd67d101af58f7bc8263c835
2065 Message-Id: <22d0f96be12f5945fd67.315532864@* (glob) 2164 Message-Id: <22d0f96be12f5945fd67.315532864@*> (glob)
2066 In-Reply-To: <patchbomb\.315532860@[^>]*> (re) 2165 In-Reply-To: <patchbomb.315532860@*> (glob)
2067 References: <patchbomb\.315532860@[^>]*> (re) 2166 References: <patchbomb.315532860@*> (glob)
2068 User-Agent: Mercurial-patchbomb/* (glob) 2167 User-Agent: Mercurial-patchbomb/* (glob)
2069 Date: Tue, 01 Jan 1980 00:01:04 +0000 2168 Date: Tue, 01 Jan 1980 00:01:04 +0000
2070 From: test 2169 From: test
2071 To: foo 2170 To: foo
2072 2171
2087 Content-Type: text/plain; charset="us-ascii" 2186 Content-Type: text/plain; charset="us-ascii"
2088 MIME-Version: 1.0 2187 MIME-Version: 1.0
2089 Content-Transfer-Encoding: 7bit 2188 Content-Transfer-Encoding: 7bit
2090 Subject: [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a 2189 Subject: [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a
2091 X-Mercurial-Node: dd9c2b4b8a8a0934d5523c15f2c119b362360903 2190 X-Mercurial-Node: dd9c2b4b8a8a0934d5523c15f2c119b362360903
2092 Message-Id: <dd9c2b4b8a8a0934d552.315532865@* (glob) 2191 Message-Id: <dd9c2b4b8a8a0934d552.315532865@*> (glob)
2093 In-Reply-To: <patchbomb\.315532860@[^>]*> (re) 2192 In-Reply-To: <patchbomb.315532860@*> (glob)
2094 References: <patchbomb\.315532860@[^>]*> (re) 2193 References: <patchbomb.315532860@*> (glob)
2095 User-Agent: Mercurial-patchbomb/* (glob) 2194 User-Agent: Mercurial-patchbomb/* (glob)
2096 Date: Tue, 01 Jan 1980 00:01:05 +0000 2195 Date: Tue, 01 Jan 1980 00:01:05 +0000
2097 From: test 2196 From: test
2098 To: foo 2197 To: foo
2099 2198
2115 Content-Type: text/plain; charset="us-ascii" 2214 Content-Type: text/plain; charset="us-ascii"
2116 MIME-Version: 1.0 2215 MIME-Version: 1.0
2117 Content-Transfer-Encoding: 7bit 2216 Content-Transfer-Encoding: 7bit
2118 Subject: [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7 2217 Subject: [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7
2119 X-Mercurial-Node: eae5fcf795eee29d0e45ffc9f519a91cd79fc9ff 2218 X-Mercurial-Node: eae5fcf795eee29d0e45ffc9f519a91cd79fc9ff
2120 Message-Id: <eae5fcf795eee29d0e45.315532866@* (glob) 2219 Message-Id: <eae5fcf795eee29d0e45.315532866@*> (glob)
2121 In-Reply-To: <patchbomb\.315532860@[^>]*> (re) 2220 In-Reply-To: <patchbomb.315532860@*> (glob)
2122 References: <patchbomb\.315532860@[^>]*> (re) 2221 References: <patchbomb.315532860@*> (glob)
2123 User-Agent: Mercurial-patchbomb/* (glob) 2222 User-Agent: Mercurial-patchbomb/* (glob)
2124 Date: Tue, 01 Jan 1980 00:01:06 +0000 2223 Date: Tue, 01 Jan 1980 00:01:06 +0000
2125 From: test 2224 From: test
2126 To: foo 2225 To: foo
2127 2226
2145 Content-Type: text/plain; charset="us-ascii" 2244 Content-Type: text/plain; charset="us-ascii"
2146 MIME-Version: 1.0 2245 MIME-Version: 1.0
2147 Content-Transfer-Encoding: 7bit 2246 Content-Transfer-Encoding: 7bit
2148 Subject: [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b 2247 Subject: [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b
2149 X-Mercurial-Node: e317db6a6f288748d1f6cb064f3810fcba66b1b6 2248 X-Mercurial-Node: e317db6a6f288748d1f6cb064f3810fcba66b1b6
2150 Message-Id: <e317db6a6f288748d1f6.315532867@* (glob) 2249 Message-Id: <e317db6a6f288748d1f6.315532867@*> (glob)
2151 In-Reply-To: <patchbomb\.315532860@[^>]*> (re) 2250 In-Reply-To: <patchbomb.315532860@*> (glob)
2152 References: <patchbomb\.315532860@[^>]*> (re) 2251 References: <patchbomb.315532860@*> (glob)
2153 User-Agent: Mercurial-patchbomb/* (glob) 2252 User-Agent: Mercurial-patchbomb/* (glob)
2154 Date: Tue, 01 Jan 1980 00:01:07 +0000 2253 Date: Tue, 01 Jan 1980 00:01:07 +0000
2155 From: test 2254 From: test
2156 To: foo 2255 To: foo
2157 2256
2176 Content-Type: text/plain; charset="us-ascii" 2275 Content-Type: text/plain; charset="us-ascii"
2177 MIME-Version: 1.0 2276 MIME-Version: 1.0
2178 Content-Transfer-Encoding: 7bit 2277 Content-Transfer-Encoding: 7bit
2179 Subject: [PATCH 8 of 8] d 2278 Subject: [PATCH 8 of 8] d
2180 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268 2279 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2181 Message-Id: <2f9fa9b998c5fe3ac2bd\.315532868[^>]*> (re) 2280 Message-Id: <2f9fa9b998c5fe3ac2bd.315532868@*> (glob)
2182 In-Reply-To: <patchbomb\.315532860@[^>]*> (re) 2281 In-Reply-To: <patchbomb.315532860@*> (glob)
2183 References: <patchbomb\.315532860@[^>]*> (re) 2282 References: <patchbomb.315532860@*> (glob)
2184 User-Agent: Mercurial-patchbomb/* (glob) 2283 User-Agent: Mercurial-patchbomb/* (glob)
2185 Date: Tue, 01 Jan 1980 00:01:08 +0000 2284 Date: Tue, 01 Jan 1980 00:01:08 +0000
2186 From: test 2285 From: test
2187 To: foo 2286 To: foo
2188 2287
2214 Content-Type: text/plain; charset="us-ascii" 2313 Content-Type: text/plain; charset="us-ascii"
2215 MIME-Version: 1.0 2314 MIME-Version: 1.0
2216 Content-Transfer-Encoding: 7bit 2315 Content-Transfer-Encoding: 7bit
2217 Subject: [PATCH] test 2316 Subject: [PATCH] test
2218 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268 2317 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2219 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@* (glob) 2318 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2220 User-Agent: Mercurial-patchbomb/* (glob) 2319 User-Agent: Mercurial-patchbomb/* (glob)
2221 Date: Tue, 01 Jan 1980 00:01:00 +0000 2320 Date: Tue, 01 Jan 1980 00:01:00 +0000
2222 From: test 2321 From: test
2223 To: foo 2322 To: foo
2224 2323