~ubuntu-branches/ubuntu/trusty/mercurial/trusty-security

« back to all changes in this revision

Viewing changes to .pc/fix_ftbfs_patchbomb_test.patch/tests/test-patchbomb.t

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers, Jamie Strandboge, Marc Deslauriers
  • Date: 2015-06-17 10:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20150617105142-5pe4odmv44b1p509
Tags: 2.8.2-1ubuntu1.3
[ Jamie Strandboge ]
* SECURITY UPDATE: fix for improperly handling case-insensitive paths on
  Windows and OS X clients
  - http://selenic.com/repo/hg-stable/rev/885bd7c5c7e3
  - http://selenic.com/repo/hg-stable/rev/c02a05cc6f5e
  - http://selenic.com/repo/hg-stable/rev/6dad422ecc5a
  - CVE-2014-9390
  - LP: #1404035

[ Marc Deslauriers ]
* SECURITY UPDATE: arbitrary command exection via crafted repository
  name in a clone command
  - d/p/from_upstream__sshpeer_more_thorough_shell_quoting.patch: add
    more thorough shell quoting to mercurial/sshpeer.py.
  - CVE-2014-9462
* debian/patches/fix_ftbfs_patchbomb_test.patch: fix patchbomb test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
  $ echo "[extensions]" >> $HGRCPATH
 
2
  $ echo "patchbomb=" >> $HGRCPATH
 
3
 
 
4
  $ hg init t
 
5
  $ cd t
 
6
  $ echo a > a
 
7
  $ hg commit -Ama -d '1 0'
 
8
  adding a
 
9
 
 
10
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
 
11
  this patch series consists of 1 patches.
 
12
  
 
13
  
 
14
  displaying [PATCH] a ...
 
15
  Content-Type: text/plain; charset="us-ascii"
 
16
  MIME-Version: 1.0
 
17
  Content-Transfer-Encoding: 7bit
 
18
  Subject: [PATCH] a
 
19
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
20
  Message-Id: <8580ff50825a50c8f716.60@*> (glob)
 
21
  User-Agent: Mercurial-patchbomb/* (glob)
 
22
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
23
  From: quux
 
24
  To: foo
 
25
  Cc: bar
 
26
  
 
27
  # HG changeset patch
 
28
  # User test
 
29
  # Date 1 0
 
30
  #      Thu Jan 01 00:00:01 1970 +0000
 
31
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
32
  # Parent  0000000000000000000000000000000000000000
 
33
  a
 
34
  
 
35
  diff -r 000000000000 -r 8580ff50825a a
 
36
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
37
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
38
  @@ -0,0 +1,1 @@
 
39
  +a
 
40
  
 
41
 
 
42
  $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
 
43
  > n
 
44
  > EOF
 
45
  this patch series consists of 1 patches.
 
46
  
 
47
  
 
48
  Final summary:
 
49
  
 
50
  From: quux
 
51
  To: foo
 
52
  Cc: bar
 
53
  Subject: [PATCH] a
 
54
   a |  1 +
 
55
   1 files changed, 1 insertions(+), 0 deletions(-)
 
56
  
 
57
  are you sure you want to send (yn)? abort: patchbomb canceled
 
58
  [255]
 
59
 
 
60
  $ echo b > b
 
61
  $ hg commit -Amb -d '2 0'
 
62
  adding b
 
63
 
 
64
  $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
 
65
  this patch series consists of 2 patches.
 
66
  
 
67
  
 
68
  Write the introductory message for the patch series.
 
69
  
 
70
  
 
71
  displaying [PATCH 0 of 2] test ...
 
72
  Content-Type: text/plain; charset="us-ascii"
 
73
  MIME-Version: 1.0
 
74
  Content-Transfer-Encoding: 7bit
 
75
  Subject: [PATCH 0 of 2] test
 
76
  Message-Id: <patchbomb.120@*> (glob)
 
77
  User-Agent: Mercurial-patchbomb/* (glob)
 
78
  Date: Thu, 01 Jan 1970 00:02:00 +0000
 
79
  From: quux
 
80
  To: foo
 
81
  Cc: bar
 
82
  
 
83
  
 
84
  displaying [PATCH 1 of 2] a ...
 
85
  Content-Type: text/plain; charset="us-ascii"
 
86
  MIME-Version: 1.0
 
87
  Content-Transfer-Encoding: 7bit
 
88
  Subject: [PATCH 1 of 2] a
 
89
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
90
  Message-Id: <8580ff50825a50c8f716.121@*> (glob)
 
91
  In-Reply-To: <patchbomb.120@*> (glob)
 
92
  References: <patchbomb.120@*> (glob)
 
93
  User-Agent: Mercurial-patchbomb/* (glob)
 
94
  Date: Thu, 01 Jan 1970 00:02:01 +0000
 
95
  From: quux
 
96
  To: foo
 
97
  Cc: bar
 
98
  
 
99
  # HG changeset patch
 
100
  # User test
 
101
  # Date 1 0
 
102
  #      Thu Jan 01 00:00:01 1970 +0000
 
103
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
104
  # Parent  0000000000000000000000000000000000000000
 
105
  a
 
106
  
 
107
  diff -r 000000000000 -r 8580ff50825a a
 
108
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
109
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
110
  @@ -0,0 +1,1 @@
 
111
  +a
 
112
  
 
113
  displaying [PATCH 2 of 2] b ...
 
114
  Content-Type: text/plain; charset="us-ascii"
 
115
  MIME-Version: 1.0
 
116
  Content-Transfer-Encoding: 7bit
 
117
  Subject: [PATCH 2 of 2] b
 
118
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
119
  Message-Id: <97d72e5f12c7e84f8506.122@*> (glob)
 
120
  In-Reply-To: <patchbomb.120@*> (glob)
 
121
  References: <patchbomb.120@*> (glob)
 
122
  User-Agent: Mercurial-patchbomb/* (glob)
 
123
  Date: Thu, 01 Jan 1970 00:02:02 +0000
 
124
  From: quux
 
125
  To: foo
 
126
  Cc: bar
 
127
  
 
128
  # HG changeset patch
 
129
  # User test
 
130
  # Date 2 0
 
131
  #      Thu Jan 01 00:00:02 1970 +0000
 
132
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
133
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
134
  b
 
135
  
 
136
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
137
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
138
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
139
  @@ -0,0 +1,1 @@
 
140
  +b
 
141
  
 
142
 
 
143
.hg/last-email.txt
 
144
 
 
145
  $ cat > editor.sh << '__EOF__'
 
146
  > echo "a precious introductory message" > "$1"
 
147
  > __EOF__
 
148
  $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null
 
149
  $ cat .hg/last-email.txt
 
150
  a precious introductory message
 
151
 
 
152
  $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
 
153
  > --config extensions.progress= --config progress.assume-tty=1 \
 
154
  > --config progress.delay=0 --config progress.refresh=0 \
 
155
  > --config progress.width=60
 
156
  this patch series consists of 2 patches.
 
157
  
 
158
  
 
159
  Write the introductory message for the patch series.
 
160
  
 
161
  \r (no-eol) (esc)
 
162
  sending [                                             ] 0/3\r (no-eol) (esc)
 
163
  sending [                                             ] 0/3\r (no-eol) (esc)
 
164
                                                              \r (no-eol) (esc)
 
165
  \r (no-eol) (esc)
 
166
                                                              \r (no-eol) (esc)
 
167
  \r (no-eol) (esc)
 
168
  sending [==============>                              ] 1/3\r (no-eol) (esc)
 
169
  sending [==============>                              ] 1/3\r (no-eol) (esc)
 
170
                                                              \r (no-eol) (esc)
 
171
  \r (no-eol) (esc)
 
172
                                                              \r (no-eol) (esc)
 
173
  \r (no-eol) (esc)
 
174
  sending [=============================>               ] 2/3\r (no-eol) (esc)
 
175
  sending [=============================>               ] 2/3\r (no-eol) (esc)
 
176
                                                              \r (esc)
 
177
  sending [PATCH 0 of 2] test ...
 
178
  sending [PATCH 1 of 2] a ...
 
179
  sending [PATCH 2 of 2] b ...
 
180
 
 
181
  $ cd ..
 
182
 
 
183
  $ hg clone -q t t2
 
184
  $ cd t2
 
185
  $ echo c > c
 
186
  $ hg commit -Amc -d '3 0'
 
187
  adding c
 
188
 
 
189
  $ cat > description <<EOF
 
190
  > a multiline
 
191
  > 
 
192
  > description
 
193
  > EOF
 
194
 
 
195
 
 
196
test bundle and description:
 
197
  $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
 
198
  >  -c bar -s test -r tip -b --desc description
 
199
  searching for changes
 
200
  1 changesets found
 
201
  
 
202
  displaying test ...
 
203
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
204
  MIME-Version: 1.0
 
205
  Subject: test
 
206
  Message-Id: <patchbomb.180@*> (glob)
 
207
  User-Agent: Mercurial-patchbomb/* (glob)
 
208
  Date: Thu, 01 Jan 1970 00:03:00 +0000
 
209
  From: quux
 
210
  To: foo
 
211
  Cc: bar
 
212
  
 
213
  --===* (glob)
 
214
  Content-Type: text/plain; charset="us-ascii"
 
215
  MIME-Version: 1.0
 
216
  Content-Transfer-Encoding: 7bit
 
217
  
 
218
  a multiline
 
219
  
 
220
  description
 
221
  
 
222
  --===* (glob)
 
223
  Content-Type: application/x-mercurial-bundle
 
224
  MIME-Version: 1.0
 
225
  Content-Disposition: attachment; filename="bundle.hg"
 
226
  Content-Transfer-Encoding: base64
 
227
  
 
228
  SEcxMEJaaDkxQVkmU1nvR7I3AAAN////lFYQWj1/4HwRkdC/AywIAk0E4pfoSIIIgQCgGEQOcLAA
 
229
  2tA1VPyp4mkeoG0EaaPU0GTT1GjRiNPIg9CZGBqZ6UbU9J+KFU09DNUaGgAAAAAANAGgAAAAA1U8
 
230
  oGgAADQGgAANNANAAAAAAZipFLz3XoakCEQB3PVPyHJVi1iYkAAKQAZQGpQGZESInRnCFMqLDla2
 
231
  Bx3qfRQeA2N4lnzKkAmP8kR2asievLLXXebVU8Vg4iEBqcJNJAxIapSU6SM4888ZAciRG6MYAIEE
 
232
  SlIBpFisgGkyRjX//TMtfcUAEsGu56+YnE1OlTZmzKm8BSu2rvo4rHAYYaadIFFuTy0LYgIkgLVD
 
233
  sgVa2F19D1tx9+hgbAygLgQwaIqcDdgA4BjQgIiz/AEP72++llgDKhKducqodGE4B0ETqF3JFOFC
 
234
  Q70eyNw=
 
235
  --===*-- (glob)
 
236
 
 
237
utf-8 patch:
 
238
  $ python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
 
239
  $ hg commit -A -d '4 0' -m 'utf-8 content'
 
240
  adding description
 
241
  adding utf
 
242
 
 
243
no mime encoding for email --test:
 
244
  $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
 
245
  this patch series consists of 1 patches.
 
246
  
 
247
  
 
248
  displaying [PATCH] utf-8 content ...
 
249
  Content-Type: text/plain; charset="us-ascii"
 
250
  MIME-Version: 1.0
 
251
  Content-Transfer-Encoding: 8bit
 
252
  Subject: [PATCH] utf-8 content
 
253
  X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
 
254
  Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
 
255
  User-Agent: Mercurial-patchbomb/* (glob)
 
256
  Date: Thu, 01 Jan 1970 00:04:00 +0000
 
257
  From: quux
 
258
  To: foo
 
259
  Cc: bar
 
260
  
 
261
  # HG changeset patch
 
262
  # User test
 
263
  # Date 4 0
 
264
  #      Thu Jan 01 00:00:04 1970 +0000
 
265
  # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
 
266
  # Parent  ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
267
  utf-8 content
 
268
  
 
269
  diff -r ff2c9fa2018b -r 909a00e13e9d description
 
270
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
271
  +++ b/description     Thu Jan 01 00:00:04 1970 +0000
 
272
  @@ -0,0 +1,3 @@
 
273
  +a multiline
 
274
  +
 
275
  +description
 
276
  diff -r ff2c9fa2018b -r 909a00e13e9d utf
 
277
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
278
  +++ b/utf     Thu Jan 01 00:00:04 1970 +0000
 
279
  @@ -0,0 +1,1 @@
 
280
  +h\xc3\xb6mma! (esc)
 
281
  
 
282
 
 
283
mime encoded mbox (base64):
 
284
  $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
 
285
  this patch series consists of 1 patches.
 
286
  
 
287
  
 
288
  sending [PATCH] utf-8 content ...
 
289
 
 
290
  $ cat mbox
 
291
  From quux ... ... .. ..:..:.. .... (re)
 
292
  Content-Type: text/plain; charset="utf-8"
 
293
  MIME-Version: 1.0
 
294
  Content-Transfer-Encoding: base64
 
295
  Subject: [PATCH] utf-8 content
 
296
  X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
 
297
  Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
 
298
  User-Agent: Mercurial-patchbomb/* (glob)
 
299
  Date: Thu, 01 Jan 1970 00:04:00 +0000
 
300
  From: Q <quux>
 
301
  To: foo
 
302
  Cc: bar
 
303
  
 
304
  IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
 
305
  biAwMSAwMDowMDowNCAxOTcwICswMDAwCiMgTm9kZSBJRCA5MDlhMDBlMTNlOWQ3OGI1NzVhZWVl
 
306
  MjNkZGRiYWRhNDZkNWExNDNmCiMgUGFyZW50ICBmZjJjOWZhMjAxOGIxNWZhNzRiMzMzNjNiZGE5
 
307
  NTI3MzIzZTJhOTlmCnV0Zi04IGNvbnRlbnQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIDkwOWEw
 
308
  MGUxM2U5ZCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3
 
309
  MCArMDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
 
310
  QEAgLTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5
 
311
  ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDow
 
312
  MDowMCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
 
313
  QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg==
 
314
  
 
315
  
 
316
  $ python -c 'print open("mbox").read().split("\n\n")[1].decode("base64")'
 
317
  # HG changeset patch
 
318
  # User test
 
319
  # Date 4 0
 
320
  #      Thu Jan 01 00:00:04 1970 +0000
 
321
  # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
 
322
  # Parent  ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
323
  utf-8 content
 
324
  
 
325
  diff -r ff2c9fa2018b -r 909a00e13e9d description
 
326
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
327
  +++ b/description     Thu Jan 01 00:00:04 1970 +0000
 
328
  @@ -0,0 +1,3 @@
 
329
  +a multiline
 
330
  +
 
331
  +description
 
332
  diff -r ff2c9fa2018b -r 909a00e13e9d utf
 
333
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
334
  +++ b/utf     Thu Jan 01 00:00:04 1970 +0000
 
335
  @@ -0,0 +1,1 @@
 
336
  +h\xc3\xb6mma! (esc)
 
337
  
 
338
  $ rm mbox
 
339
 
 
340
mime encoded mbox (quoted-printable):
 
341
  $ python -c 'fp = open("long", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
 
342
  $ hg commit -A -d '4 0' -m 'long line'
 
343
  adding long
 
344
 
 
345
no mime encoding for email --test:
 
346
  $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
 
347
  this patch series consists of 1 patches.
 
348
  
 
349
  
 
350
  displaying [PATCH] long line ...
 
351
  Content-Type: text/plain; charset="us-ascii"
 
352
  MIME-Version: 1.0
 
353
  Content-Transfer-Encoding: quoted-printable
 
354
  Subject: [PATCH] long line
 
355
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
356
  Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
 
357
  User-Agent: Mercurial-patchbomb/* (glob)
 
358
  Date: Thu, 01 Jan 1970 00:04:00 +0000
 
359
  From: quux
 
360
  To: foo
 
361
  Cc: bar
 
362
  
 
363
  # HG changeset patch
 
364
  # User test
 
365
  # Date 4 0
 
366
  #      Thu Jan 01 00:00:04 1970 +0000
 
367
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
368
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
 
369
  long line
 
370
  
 
371
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
 
372
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
373
  +++ b/long    Thu Jan 01 00:00:04 1970 +0000
 
374
  @@ -0,0 +1,4 @@
 
375
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
376
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
377
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
378
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
379
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
380
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
381
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
382
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
383
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
384
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
385
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
386
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
387
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
388
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
389
  +foo
 
390
  +
 
391
  +bar
 
392
  
 
393
 
 
394
mime encoded mbox (quoted-printable):
 
395
  $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
 
396
  this patch series consists of 1 patches.
 
397
  
 
398
  
 
399
  sending [PATCH] long line ...
 
400
  $ cat mbox
 
401
  From quux ... ... .. ..:..:.. .... (re)
 
402
  Content-Type: text/plain; charset="us-ascii"
 
403
  MIME-Version: 1.0
 
404
  Content-Transfer-Encoding: quoted-printable
 
405
  Subject: [PATCH] long line
 
406
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
407
  Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
 
408
  User-Agent: Mercurial-patchbomb/* (glob)
 
409
  Date: Thu, 01 Jan 1970 00:04:00 +0000
 
410
  From: quux
 
411
  To: foo
 
412
  Cc: bar
 
413
  
 
414
  # HG changeset patch
 
415
  # User test
 
416
  # Date 4 0
 
417
  #      Thu Jan 01 00:00:04 1970 +0000
 
418
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
419
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
 
420
  long line
 
421
  
 
422
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
 
423
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
424
  +++ b/long    Thu Jan 01 00:00:04 1970 +0000
 
425
  @@ -0,0 +1,4 @@
 
426
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
427
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
428
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
429
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
430
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
431
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
432
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
433
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
434
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
435
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
436
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
437
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
438
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
439
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
440
  +foo
 
441
  +
 
442
  +bar
 
443
  
 
444
  
 
445
 
 
446
  $ rm mbox
 
447
 
 
448
iso-8859-1 patch:
 
449
  $ python -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
 
450
  $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
 
451
  adding isolatin
 
452
 
 
453
fake ascii mbox:
 
454
  $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
 
455
  this patch series consists of 1 patches.
 
456
  
 
457
  
 
458
  sending [PATCH] isolatin 8-bit encoding ...
 
459
  $ cat mbox
 
460
  From quux ... ... .. ..:..:.. .... (re)
 
461
  Content-Type: text/plain; charset="us-ascii"
 
462
  MIME-Version: 1.0
 
463
  Content-Transfer-Encoding: 8bit
 
464
  Subject: [PATCH] isolatin 8-bit encoding
 
465
  X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
 
466
  Message-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
 
467
  User-Agent: Mercurial-patchbomb/* (glob)
 
468
  Date: Thu, 01 Jan 1970 00:05:00 +0000
 
469
  From: quux
 
470
  To: foo
 
471
  Cc: bar
 
472
  
 
473
  # HG changeset patch
 
474
  # User test
 
475
  # Date 5 0
 
476
  #      Thu Jan 01 00:00:05 1970 +0000
 
477
  # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
 
478
  # Parent  a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
479
  isolatin 8-bit encoding
 
480
  
 
481
  diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
 
482
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
483
  +++ b/isolatin        Thu Jan 01 00:00:05 1970 +0000
 
484
  @@ -0,0 +1,1 @@
 
485
  +h\xf6mma! (esc)
 
486
  
 
487
  
 
488
 
 
489
test diffstat for single patch:
 
490
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
 
491
  this patch series consists of 1 patches.
 
492
  
 
493
  
 
494
  Final summary:
 
495
  
 
496
  From: quux
 
497
  To: foo
 
498
  Cc: bar
 
499
  Subject: [PATCH] test
 
500
   c |  1 +
 
501
   1 files changed, 1 insertions(+), 0 deletions(-)
 
502
  
 
503
  are you sure you want to send (yn)? y
 
504
  
 
505
  displaying [PATCH] test ...
 
506
  Content-Type: text/plain; charset="us-ascii"
 
507
  MIME-Version: 1.0
 
508
  Content-Transfer-Encoding: 7bit
 
509
  Subject: [PATCH] test
 
510
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
511
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
512
  User-Agent: Mercurial-patchbomb/* (glob)
 
513
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
514
  From: quux
 
515
  To: foo
 
516
  Cc: bar
 
517
  
 
518
   c |  1 +
 
519
   1 files changed, 1 insertions(+), 0 deletions(-)
 
520
  
 
521
  
 
522
  # HG changeset patch
 
523
  # User test
 
524
  # Date 3 0
 
525
  #      Thu Jan 01 00:00:03 1970 +0000
 
526
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
527
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
528
  c
 
529
  
 
530
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
531
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
532
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
533
  @@ -0,0 +1,1 @@
 
534
  +c
 
535
  
 
536
 
 
537
test diffstat for multiple patches:
 
538
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
 
539
  >  -r 0:1
 
540
  this patch series consists of 2 patches.
 
541
  
 
542
  
 
543
  Write the introductory message for the patch series.
 
544
  
 
545
  
 
546
  Final summary:
 
547
  
 
548
  From: quux
 
549
  To: foo
 
550
  Cc: bar
 
551
  Subject: [PATCH 0 of 2] test
 
552
   a |  1 +
 
553
   b |  1 +
 
554
   2 files changed, 2 insertions(+), 0 deletions(-)
 
555
  Subject: [PATCH 1 of 2] a
 
556
   a |  1 +
 
557
   1 files changed, 1 insertions(+), 0 deletions(-)
 
558
  Subject: [PATCH 2 of 2] b
 
559
   b |  1 +
 
560
   1 files changed, 1 insertions(+), 0 deletions(-)
 
561
  
 
562
  are you sure you want to send (yn)? y
 
563
  
 
564
  displaying [PATCH 0 of 2] test ...
 
565
  Content-Type: text/plain; charset="us-ascii"
 
566
  MIME-Version: 1.0
 
567
  Content-Transfer-Encoding: 7bit
 
568
  Subject: [PATCH 0 of 2] test
 
569
  Message-Id: <patchbomb.60@*> (glob)
 
570
  User-Agent: Mercurial-patchbomb/* (glob)
 
571
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
572
  From: quux
 
573
  To: foo
 
574
  Cc: bar
 
575
  
 
576
  
 
577
   a |  1 +
 
578
   b |  1 +
 
579
   2 files changed, 2 insertions(+), 0 deletions(-)
 
580
  
 
581
  displaying [PATCH 1 of 2] a ...
 
582
  Content-Type: text/plain; charset="us-ascii"
 
583
  MIME-Version: 1.0
 
584
  Content-Transfer-Encoding: 7bit
 
585
  Subject: [PATCH 1 of 2] a
 
586
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
587
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
 
588
  In-Reply-To: <patchbomb.60@*> (glob)
 
589
  References: <patchbomb.60@*> (glob)
 
590
  User-Agent: Mercurial-patchbomb/* (glob)
 
591
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
592
  From: quux
 
593
  To: foo
 
594
  Cc: bar
 
595
  
 
596
   a |  1 +
 
597
   1 files changed, 1 insertions(+), 0 deletions(-)
 
598
  
 
599
  
 
600
  # HG changeset patch
 
601
  # User test
 
602
  # Date 1 0
 
603
  #      Thu Jan 01 00:00:01 1970 +0000
 
604
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
605
  # Parent  0000000000000000000000000000000000000000
 
606
  a
 
607
  
 
608
  diff -r 000000000000 -r 8580ff50825a a
 
609
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
610
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
611
  @@ -0,0 +1,1 @@
 
612
  +a
 
613
  
 
614
  displaying [PATCH 2 of 2] b ...
 
615
  Content-Type: text/plain; charset="us-ascii"
 
616
  MIME-Version: 1.0
 
617
  Content-Transfer-Encoding: 7bit
 
618
  Subject: [PATCH 2 of 2] b
 
619
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
620
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
 
621
  In-Reply-To: <patchbomb.60@*> (glob)
 
622
  References: <patchbomb.60@*> (glob)
 
623
  User-Agent: Mercurial-patchbomb/* (glob)
 
624
  Date: Thu, 01 Jan 1970 00:01:02 +0000
 
625
  From: quux
 
626
  To: foo
 
627
  Cc: bar
 
628
  
 
629
   b |  1 +
 
630
   1 files changed, 1 insertions(+), 0 deletions(-)
 
631
  
 
632
  
 
633
  # HG changeset patch
 
634
  # User test
 
635
  # Date 2 0
 
636
  #      Thu Jan 01 00:00:02 1970 +0000
 
637
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
638
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
639
  b
 
640
  
 
641
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
642
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
643
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
644
  @@ -0,0 +1,1 @@
 
645
  +b
 
646
  
 
647
 
 
648
test inline for single patch:
 
649
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
 
650
  this patch series consists of 1 patches.
 
651
  
 
652
  
 
653
  displaying [PATCH] test ...
 
654
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
655
  MIME-Version: 1.0
 
656
  Subject: [PATCH] test
 
657
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
658
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
659
  User-Agent: Mercurial-patchbomb/* (glob)
 
660
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
661
  From: quux
 
662
  To: foo
 
663
  Cc: bar
 
664
  
 
665
  --===* (glob)
 
666
  Content-Type: text/x-patch; charset="us-ascii"
 
667
  MIME-Version: 1.0
 
668
  Content-Transfer-Encoding: 7bit
 
669
  Content-Disposition: inline; filename=t2.patch
 
670
  
 
671
  # HG changeset patch
 
672
  # User test
 
673
  # Date 3 0
 
674
  #      Thu Jan 01 00:00:03 1970 +0000
 
675
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
676
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
677
  c
 
678
  
 
679
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
680
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
681
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
682
  @@ -0,0 +1,1 @@
 
683
  +c
 
684
  
 
685
  --===*-- (glob)
 
686
 
 
687
 
 
688
test inline for single patch (quoted-printable):
 
689
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4
 
690
  this patch series consists of 1 patches.
 
691
  
 
692
  
 
693
  displaying [PATCH] test ...
 
694
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
695
  MIME-Version: 1.0
 
696
  Subject: [PATCH] test
 
697
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
698
  Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
 
699
  User-Agent: Mercurial-patchbomb/* (glob)
 
700
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
701
  From: quux
 
702
  To: foo
 
703
  Cc: bar
 
704
  
 
705
  --===* (glob)
 
706
  Content-Type: text/x-patch; charset="us-ascii"
 
707
  MIME-Version: 1.0
 
708
  Content-Transfer-Encoding: quoted-printable
 
709
  Content-Disposition: inline; filename=t2.patch
 
710
  
 
711
  # HG changeset patch
 
712
  # User test
 
713
  # Date 4 0
 
714
  #      Thu Jan 01 00:00:04 1970 +0000
 
715
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
716
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
 
717
  long line
 
718
  
 
719
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
 
720
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
721
  +++ b/long    Thu Jan 01 00:00:04 1970 +0000
 
722
  @@ -0,0 +1,4 @@
 
723
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
724
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
725
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
726
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
727
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
728
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
729
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
730
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
731
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
732
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
733
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
734
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
735
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
736
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
737
  +foo
 
738
  +
 
739
  +bar
 
740
  
 
741
  --===*-- (glob)
 
742
 
 
743
test inline for multiple patches:
 
744
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
 
745
  >  -r 0:1 -r 4
 
746
  this patch series consists of 3 patches.
 
747
  
 
748
  
 
749
  Write the introductory message for the patch series.
 
750
  
 
751
  
 
752
  displaying [PATCH 0 of 3] test ...
 
753
  Content-Type: text/plain; charset="us-ascii"
 
754
  MIME-Version: 1.0
 
755
  Content-Transfer-Encoding: 7bit
 
756
  Subject: [PATCH 0 of 3] test
 
757
  Message-Id: <patchbomb.60@*> (glob)
 
758
  User-Agent: Mercurial-patchbomb/* (glob)
 
759
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
760
  From: quux
 
761
  To: foo
 
762
  Cc: bar
 
763
  
 
764
  
 
765
  displaying [PATCH 1 of 3] a ...
 
766
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
767
  MIME-Version: 1.0
 
768
  Subject: [PATCH 1 of 3] a
 
769
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
770
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
 
771
  In-Reply-To: <patchbomb.60@*> (glob)
 
772
  References: <patchbomb.60@*> (glob)
 
773
  User-Agent: Mercurial-patchbomb/* (glob)
 
774
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
775
  From: quux
 
776
  To: foo
 
777
  Cc: bar
 
778
  
 
779
  --===* (glob)
 
780
  Content-Type: text/x-patch; charset="us-ascii"
 
781
  MIME-Version: 1.0
 
782
  Content-Transfer-Encoding: 7bit
 
783
  Content-Disposition: inline; filename=t2-1.patch
 
784
  
 
785
  # HG changeset patch
 
786
  # User test
 
787
  # Date 1 0
 
788
  #      Thu Jan 01 00:00:01 1970 +0000
 
789
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
790
  # Parent  0000000000000000000000000000000000000000
 
791
  a
 
792
  
 
793
  diff -r 000000000000 -r 8580ff50825a a
 
794
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
795
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
796
  @@ -0,0 +1,1 @@
 
797
  +a
 
798
  
 
799
  --===*-- (glob)
 
800
  displaying [PATCH 2 of 3] b ...
 
801
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
802
  MIME-Version: 1.0
 
803
  Subject: [PATCH 2 of 3] b
 
804
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
805
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
 
806
  In-Reply-To: <patchbomb.60@*> (glob)
 
807
  References: <patchbomb.60@*> (glob)
 
808
  User-Agent: Mercurial-patchbomb/* (glob)
 
809
  Date: Thu, 01 Jan 1970 00:01:02 +0000
 
810
  From: quux
 
811
  To: foo
 
812
  Cc: bar
 
813
  
 
814
  --===* (glob)
 
815
  Content-Type: text/x-patch; charset="us-ascii"
 
816
  MIME-Version: 1.0
 
817
  Content-Transfer-Encoding: 7bit
 
818
  Content-Disposition: inline; filename=t2-2.patch
 
819
  
 
820
  # HG changeset patch
 
821
  # User test
 
822
  # Date 2 0
 
823
  #      Thu Jan 01 00:00:02 1970 +0000
 
824
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
825
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
826
  b
 
827
  
 
828
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
829
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
830
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
831
  @@ -0,0 +1,1 @@
 
832
  +b
 
833
  
 
834
  --===*-- (glob)
 
835
  displaying [PATCH 3 of 3] long line ...
 
836
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
837
  MIME-Version: 1.0
 
838
  Subject: [PATCH 3 of 3] long line
 
839
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
840
  Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
 
841
  In-Reply-To: <patchbomb.60@*> (glob)
 
842
  References: <patchbomb.60@*> (glob)
 
843
  User-Agent: Mercurial-patchbomb/* (glob)
 
844
  Date: Thu, 01 Jan 1970 00:01:03 +0000
 
845
  From: quux
 
846
  To: foo
 
847
  Cc: bar
 
848
  
 
849
  --===* (glob)
 
850
  Content-Type: text/x-patch; charset="us-ascii"
 
851
  MIME-Version: 1.0
 
852
  Content-Transfer-Encoding: quoted-printable
 
853
  Content-Disposition: inline; filename=t2-3.patch
 
854
  
 
855
  # HG changeset patch
 
856
  # User test
 
857
  # Date 4 0
 
858
  #      Thu Jan 01 00:00:04 1970 +0000
 
859
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
860
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
 
861
  long line
 
862
  
 
863
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
 
864
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
865
  +++ b/long    Thu Jan 01 00:00:04 1970 +0000
 
866
  @@ -0,0 +1,4 @@
 
867
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
868
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
869
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
870
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
871
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
872
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
873
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
874
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
875
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
876
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
877
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
878
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
879
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
880
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
881
  +foo
 
882
  +
 
883
  +bar
 
884
  
 
885
  --===*-- (glob)
 
886
 
 
887
test attach for single patch:
 
888
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2
 
889
  this patch series consists of 1 patches.
 
890
  
 
891
  
 
892
  displaying [PATCH] test ...
 
893
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
894
  MIME-Version: 1.0
 
895
  Subject: [PATCH] test
 
896
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
897
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
898
  User-Agent: Mercurial-patchbomb/* (glob)
 
899
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
900
  From: quux
 
901
  To: foo
 
902
  Cc: bar
 
903
  
 
904
  --===* (glob)
 
905
  Content-Type: text/plain; charset="us-ascii"
 
906
  MIME-Version: 1.0
 
907
  Content-Transfer-Encoding: 7bit
 
908
  
 
909
  Patch subject is complete summary.
 
910
  
 
911
  
 
912
  
 
913
  --===* (glob)
 
914
  Content-Type: text/x-patch; charset="us-ascii"
 
915
  MIME-Version: 1.0
 
916
  Content-Transfer-Encoding: 7bit
 
917
  Content-Disposition: attachment; filename=t2.patch
 
918
  
 
919
  # HG changeset patch
 
920
  # User test
 
921
  # Date 3 0
 
922
  #      Thu Jan 01 00:00:03 1970 +0000
 
923
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
924
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
925
  c
 
926
  
 
927
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
928
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
929
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
930
  @@ -0,0 +1,1 @@
 
931
  +c
 
932
  
 
933
  --===*-- (glob)
 
934
 
 
935
test attach for single patch (quoted-printable):
 
936
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4
 
937
  this patch series consists of 1 patches.
 
938
  
 
939
  
 
940
  displaying [PATCH] test ...
 
941
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
942
  MIME-Version: 1.0
 
943
  Subject: [PATCH] test
 
944
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
945
  Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
 
946
  User-Agent: Mercurial-patchbomb/* (glob)
 
947
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
948
  From: quux
 
949
  To: foo
 
950
  Cc: bar
 
951
  
 
952
  --===* (glob)
 
953
  Content-Type: text/plain; charset="us-ascii"
 
954
  MIME-Version: 1.0
 
955
  Content-Transfer-Encoding: 7bit
 
956
  
 
957
  Patch subject is complete summary.
 
958
  
 
959
  
 
960
  
 
961
  --===* (glob)
 
962
  Content-Type: text/x-patch; charset="us-ascii"
 
963
  MIME-Version: 1.0
 
964
  Content-Transfer-Encoding: quoted-printable
 
965
  Content-Disposition: attachment; filename=t2.patch
 
966
  
 
967
  # HG changeset patch
 
968
  # User test
 
969
  # Date 4 0
 
970
  #      Thu Jan 01 00:00:04 1970 +0000
 
971
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
972
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
 
973
  long line
 
974
  
 
975
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
 
976
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
977
  +++ b/long    Thu Jan 01 00:00:04 1970 +0000
 
978
  @@ -0,0 +1,4 @@
 
979
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
980
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
981
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
982
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
983
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
984
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
985
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
986
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
987
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
988
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
989
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
990
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
991
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
992
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
993
  +foo
 
994
  +
 
995
  +bar
 
996
  
 
997
  --===*-- (glob)
 
998
 
 
999
test attach and body for single patch:
 
1000
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2
 
1001
  this patch series consists of 1 patches.
 
1002
  
 
1003
  
 
1004
  displaying [PATCH] test ...
 
1005
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
1006
  MIME-Version: 1.0
 
1007
  Subject: [PATCH] test
 
1008
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1009
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
1010
  User-Agent: Mercurial-patchbomb/* (glob)
 
1011
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1012
  From: quux
 
1013
  To: foo
 
1014
  Cc: bar
 
1015
  
 
1016
  --===* (glob)
 
1017
  Content-Type: text/plain; charset="us-ascii"
 
1018
  MIME-Version: 1.0
 
1019
  Content-Transfer-Encoding: 7bit
 
1020
  
 
1021
  # HG changeset patch
 
1022
  # User test
 
1023
  # Date 3 0
 
1024
  #      Thu Jan 01 00:00:03 1970 +0000
 
1025
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1026
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1027
  c
 
1028
  
 
1029
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1030
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1031
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1032
  @@ -0,0 +1,1 @@
 
1033
  +c
 
1034
  
 
1035
  --===* (glob)
 
1036
  Content-Type: text/x-patch; charset="us-ascii"
 
1037
  MIME-Version: 1.0
 
1038
  Content-Transfer-Encoding: 7bit
 
1039
  Content-Disposition: attachment; filename=t2.patch
 
1040
  
 
1041
  # HG changeset patch
 
1042
  # User test
 
1043
  # Date 3 0
 
1044
  #      Thu Jan 01 00:00:03 1970 +0000
 
1045
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1046
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1047
  c
 
1048
  
 
1049
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1050
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1051
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1052
  @@ -0,0 +1,1 @@
 
1053
  +c
 
1054
  
 
1055
  --===*-- (glob)
 
1056
 
 
1057
test attach for multiple patches:
 
1058
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
 
1059
  >  -r 0:1 -r 4
 
1060
  this patch series consists of 3 patches.
 
1061
  
 
1062
  
 
1063
  Write the introductory message for the patch series.
 
1064
  
 
1065
  
 
1066
  displaying [PATCH 0 of 3] test ...
 
1067
  Content-Type: text/plain; charset="us-ascii"
 
1068
  MIME-Version: 1.0
 
1069
  Content-Transfer-Encoding: 7bit
 
1070
  Subject: [PATCH 0 of 3] test
 
1071
  Message-Id: <patchbomb.60@*> (glob)
 
1072
  User-Agent: Mercurial-patchbomb/* (glob)
 
1073
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1074
  From: quux
 
1075
  To: foo
 
1076
  Cc: bar
 
1077
  
 
1078
  
 
1079
  displaying [PATCH 1 of 3] a ...
 
1080
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
1081
  MIME-Version: 1.0
 
1082
  Subject: [PATCH 1 of 3] a
 
1083
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1084
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
 
1085
  In-Reply-To: <patchbomb.60@*> (glob)
 
1086
  References: <patchbomb.60@*> (glob)
 
1087
  User-Agent: Mercurial-patchbomb/* (glob)
 
1088
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1089
  From: quux
 
1090
  To: foo
 
1091
  Cc: bar
 
1092
  
 
1093
  --===* (glob)
 
1094
  Content-Type: text/plain; charset="us-ascii"
 
1095
  MIME-Version: 1.0
 
1096
  Content-Transfer-Encoding: 7bit
 
1097
  
 
1098
  Patch subject is complete summary.
 
1099
  
 
1100
  
 
1101
  
 
1102
  --===* (glob)
 
1103
  Content-Type: text/x-patch; charset="us-ascii"
 
1104
  MIME-Version: 1.0
 
1105
  Content-Transfer-Encoding: 7bit
 
1106
  Content-Disposition: attachment; filename=t2-1.patch
 
1107
  
 
1108
  # HG changeset patch
 
1109
  # User test
 
1110
  # Date 1 0
 
1111
  #      Thu Jan 01 00:00:01 1970 +0000
 
1112
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1113
  # Parent  0000000000000000000000000000000000000000
 
1114
  a
 
1115
  
 
1116
  diff -r 000000000000 -r 8580ff50825a a
 
1117
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1118
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
1119
  @@ -0,0 +1,1 @@
 
1120
  +a
 
1121
  
 
1122
  --===*-- (glob)
 
1123
  displaying [PATCH 2 of 3] b ...
 
1124
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
1125
  MIME-Version: 1.0
 
1126
  Subject: [PATCH 2 of 3] b
 
1127
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1128
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
 
1129
  In-Reply-To: <patchbomb.60@*> (glob)
 
1130
  References: <patchbomb.60@*> (glob)
 
1131
  User-Agent: Mercurial-patchbomb/* (glob)
 
1132
  Date: Thu, 01 Jan 1970 00:01:02 +0000
 
1133
  From: quux
 
1134
  To: foo
 
1135
  Cc: bar
 
1136
  
 
1137
  --===* (glob)
 
1138
  Content-Type: text/plain; charset="us-ascii"
 
1139
  MIME-Version: 1.0
 
1140
  Content-Transfer-Encoding: 7bit
 
1141
  
 
1142
  Patch subject is complete summary.
 
1143
  
 
1144
  
 
1145
  
 
1146
  --===* (glob)
 
1147
  Content-Type: text/x-patch; charset="us-ascii"
 
1148
  MIME-Version: 1.0
 
1149
  Content-Transfer-Encoding: 7bit
 
1150
  Content-Disposition: attachment; filename=t2-2.patch
 
1151
  
 
1152
  # HG changeset patch
 
1153
  # User test
 
1154
  # Date 2 0
 
1155
  #      Thu Jan 01 00:00:02 1970 +0000
 
1156
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1157
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1158
  b
 
1159
  
 
1160
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
1161
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1162
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
1163
  @@ -0,0 +1,1 @@
 
1164
  +b
 
1165
  
 
1166
  --===*-- (glob)
 
1167
  displaying [PATCH 3 of 3] long line ...
 
1168
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
1169
  MIME-Version: 1.0
 
1170
  Subject: [PATCH 3 of 3] long line
 
1171
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
1172
  Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
 
1173
  In-Reply-To: <patchbomb.60@*> (glob)
 
1174
  References: <patchbomb.60@*> (glob)
 
1175
  User-Agent: Mercurial-patchbomb/* (glob)
 
1176
  Date: Thu, 01 Jan 1970 00:01:03 +0000
 
1177
  From: quux
 
1178
  To: foo
 
1179
  Cc: bar
 
1180
  
 
1181
  --===* (glob)
 
1182
  Content-Type: text/plain; charset="us-ascii"
 
1183
  MIME-Version: 1.0
 
1184
  Content-Transfer-Encoding: 7bit
 
1185
  
 
1186
  Patch subject is complete summary.
 
1187
  
 
1188
  
 
1189
  
 
1190
  --===* (glob)
 
1191
  Content-Type: text/x-patch; charset="us-ascii"
 
1192
  MIME-Version: 1.0
 
1193
  Content-Transfer-Encoding: quoted-printable
 
1194
  Content-Disposition: attachment; filename=t2-3.patch
 
1195
  
 
1196
  # HG changeset patch
 
1197
  # User test
 
1198
  # Date 4 0
 
1199
  #      Thu Jan 01 00:00:04 1970 +0000
 
1200
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
1201
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
 
1202
  long line
 
1203
  
 
1204
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
 
1205
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1206
  +++ b/long    Thu Jan 01 00:00:04 1970 +0000
 
1207
  @@ -0,0 +1,4 @@
 
1208
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1209
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1210
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1211
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1212
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1213
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1214
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1215
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1216
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1217
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1218
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1219
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1220
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
1221
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
1222
  +foo
 
1223
  +
 
1224
  +bar
 
1225
  
 
1226
  --===*-- (glob)
 
1227
 
 
1228
test intro for single patch:
 
1229
  $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
 
1230
  >  -r 2
 
1231
  this patch series consists of 1 patches.
 
1232
  
 
1233
  
 
1234
  Write the introductory message for the patch series.
 
1235
  
 
1236
  
 
1237
  displaying [PATCH 0 of 1] test ...
 
1238
  Content-Type: text/plain; charset="us-ascii"
 
1239
  MIME-Version: 1.0
 
1240
  Content-Transfer-Encoding: 7bit
 
1241
  Subject: [PATCH 0 of 1] test
 
1242
  Message-Id: <patchbomb.60@*> (glob)
 
1243
  User-Agent: Mercurial-patchbomb/* (glob)
 
1244
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1245
  From: quux
 
1246
  To: foo
 
1247
  Cc: bar
 
1248
  
 
1249
  
 
1250
  displaying [PATCH 1 of 1] c ...
 
1251
  Content-Type: text/plain; charset="us-ascii"
 
1252
  MIME-Version: 1.0
 
1253
  Content-Transfer-Encoding: 7bit
 
1254
  Subject: [PATCH 1 of 1] c
 
1255
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1256
  Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
 
1257
  In-Reply-To: <patchbomb.60@*> (glob)
 
1258
  References: <patchbomb.60@*> (glob)
 
1259
  User-Agent: Mercurial-patchbomb/* (glob)
 
1260
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1261
  From: quux
 
1262
  To: foo
 
1263
  Cc: bar
 
1264
  
 
1265
  # HG changeset patch
 
1266
  # User test
 
1267
  # Date 3 0
 
1268
  #      Thu Jan 01 00:00:03 1970 +0000
 
1269
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1270
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1271
  c
 
1272
  
 
1273
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1274
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1275
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1276
  @@ -0,0 +1,1 @@
 
1277
  +c
 
1278
  
 
1279
 
 
1280
test --desc without --intro for a single patch:
 
1281
  $ echo foo > intro.text
 
1282
  $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
 
1283
  >  -s test -r 2
 
1284
  this patch series consists of 1 patches.
 
1285
  
 
1286
  
 
1287
  displaying [PATCH 0 of 1] test ...
 
1288
  Content-Type: text/plain; charset="us-ascii"
 
1289
  MIME-Version: 1.0
 
1290
  Content-Transfer-Encoding: 7bit
 
1291
  Subject: [PATCH 0 of 1] test
 
1292
  Message-Id: <patchbomb.60@*> (glob)
 
1293
  User-Agent: Mercurial-patchbomb/* (glob)
 
1294
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1295
  From: quux
 
1296
  To: foo
 
1297
  Cc: bar
 
1298
  
 
1299
  foo
 
1300
  
 
1301
  displaying [PATCH 1 of 1] c ...
 
1302
  Content-Type: text/plain; charset="us-ascii"
 
1303
  MIME-Version: 1.0
 
1304
  Content-Transfer-Encoding: 7bit
 
1305
  Subject: [PATCH 1 of 1] c
 
1306
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1307
  Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
 
1308
  In-Reply-To: <patchbomb.60@*> (glob)
 
1309
  References: <patchbomb.60@*> (glob)
 
1310
  User-Agent: Mercurial-patchbomb/* (glob)
 
1311
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1312
  From: quux
 
1313
  To: foo
 
1314
  Cc: bar
 
1315
  
 
1316
  # HG changeset patch
 
1317
  # User test
 
1318
  # Date 3 0
 
1319
  #      Thu Jan 01 00:00:03 1970 +0000
 
1320
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1321
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1322
  c
 
1323
  
 
1324
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1325
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1326
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1327
  @@ -0,0 +1,1 @@
 
1328
  +c
 
1329
  
 
1330
 
 
1331
test intro for multiple patches:
 
1332
  $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
 
1333
  >  -r 0:1
 
1334
  this patch series consists of 2 patches.
 
1335
  
 
1336
  
 
1337
  Write the introductory message for the patch series.
 
1338
  
 
1339
  
 
1340
  displaying [PATCH 0 of 2] test ...
 
1341
  Content-Type: text/plain; charset="us-ascii"
 
1342
  MIME-Version: 1.0
 
1343
  Content-Transfer-Encoding: 7bit
 
1344
  Subject: [PATCH 0 of 2] test
 
1345
  Message-Id: <patchbomb.60@*> (glob)
 
1346
  User-Agent: Mercurial-patchbomb/* (glob)
 
1347
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1348
  From: quux
 
1349
  To: foo
 
1350
  Cc: bar
 
1351
  
 
1352
  
 
1353
  displaying [PATCH 1 of 2] a ...
 
1354
  Content-Type: text/plain; charset="us-ascii"
 
1355
  MIME-Version: 1.0
 
1356
  Content-Transfer-Encoding: 7bit
 
1357
  Subject: [PATCH 1 of 2] a
 
1358
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1359
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
 
1360
  In-Reply-To: <patchbomb.60@*> (glob)
 
1361
  References: <patchbomb.60@*> (glob)
 
1362
  User-Agent: Mercurial-patchbomb/* (glob)
 
1363
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1364
  From: quux
 
1365
  To: foo
 
1366
  Cc: bar
 
1367
  
 
1368
  # HG changeset patch
 
1369
  # User test
 
1370
  # Date 1 0
 
1371
  #      Thu Jan 01 00:00:01 1970 +0000
 
1372
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1373
  # Parent  0000000000000000000000000000000000000000
 
1374
  a
 
1375
  
 
1376
  diff -r 000000000000 -r 8580ff50825a a
 
1377
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1378
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
1379
  @@ -0,0 +1,1 @@
 
1380
  +a
 
1381
  
 
1382
  displaying [PATCH 2 of 2] b ...
 
1383
  Content-Type: text/plain; charset="us-ascii"
 
1384
  MIME-Version: 1.0
 
1385
  Content-Transfer-Encoding: 7bit
 
1386
  Subject: [PATCH 2 of 2] b
 
1387
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1388
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
 
1389
  In-Reply-To: <patchbomb.60@*> (glob)
 
1390
  References: <patchbomb.60@*> (glob)
 
1391
  User-Agent: Mercurial-patchbomb/* (glob)
 
1392
  Date: Thu, 01 Jan 1970 00:01:02 +0000
 
1393
  From: quux
 
1394
  To: foo
 
1395
  Cc: bar
 
1396
  
 
1397
  # HG changeset patch
 
1398
  # User test
 
1399
  # Date 2 0
 
1400
  #      Thu Jan 01 00:00:02 1970 +0000
 
1401
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1402
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1403
  b
 
1404
  
 
1405
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
1406
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1407
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
1408
  @@ -0,0 +1,1 @@
 
1409
  +b
 
1410
  
 
1411
 
 
1412
test reply-to via config:
 
1413
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
 
1414
  >  --config patchbomb.reply-to='baz@example.com'
 
1415
  this patch series consists of 1 patches.
 
1416
  
 
1417
  
 
1418
  displaying [PATCH] test ...
 
1419
  Content-Type: text/plain; charset="us-ascii"
 
1420
  MIME-Version: 1.0
 
1421
  Content-Transfer-Encoding: 7bit
 
1422
  Subject: [PATCH] test
 
1423
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1424
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
1425
  User-Agent: Mercurial-patchbomb/* (glob)
 
1426
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1427
  From: quux
 
1428
  To: foo
 
1429
  Cc: bar
 
1430
  Reply-To: baz@example.com
 
1431
  
 
1432
  # HG changeset patch
 
1433
  # User test
 
1434
  # Date 3 0
 
1435
  #      Thu Jan 01 00:00:03 1970 +0000
 
1436
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1437
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1438
  c
 
1439
  
 
1440
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1441
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1442
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1443
  @@ -0,0 +1,1 @@
 
1444
  +c
 
1445
  
 
1446
 
 
1447
test reply-to via command line:
 
1448
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
 
1449
  >  --reply-to baz --reply-to fred
 
1450
  this patch series consists of 1 patches.
 
1451
  
 
1452
  
 
1453
  displaying [PATCH] test ...
 
1454
  Content-Type: text/plain; charset="us-ascii"
 
1455
  MIME-Version: 1.0
 
1456
  Content-Transfer-Encoding: 7bit
 
1457
  Subject: [PATCH] test
 
1458
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1459
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
1460
  User-Agent: Mercurial-patchbomb/* (glob)
 
1461
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1462
  From: quux
 
1463
  To: foo
 
1464
  Cc: bar
 
1465
  Reply-To: baz, fred
 
1466
  
 
1467
  # HG changeset patch
 
1468
  # User test
 
1469
  # Date 3 0
 
1470
  #      Thu Jan 01 00:00:03 1970 +0000
 
1471
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1472
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1473
  c
 
1474
  
 
1475
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1476
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1477
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1478
  @@ -0,0 +1,1 @@
 
1479
  +c
 
1480
  
 
1481
 
 
1482
tagging csets:
 
1483
  $ hg tag -r0 zero zero.foo
 
1484
  $ hg tag -r1 one one.patch
 
1485
  $ hg tag -r2 two two.diff
 
1486
 
 
1487
test inline for single named patch:
 
1488
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
 
1489
  this patch series consists of 1 patches.
 
1490
  
 
1491
  
 
1492
  displaying [PATCH] test ...
 
1493
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
1494
  MIME-Version: 1.0
 
1495
  Subject: [PATCH] test
 
1496
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1497
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
1498
  User-Agent: Mercurial-patchbomb/* (glob)
 
1499
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1500
  From: quux
 
1501
  To: foo
 
1502
  Cc: bar
 
1503
  
 
1504
  --===* (glob)
 
1505
  Content-Type: text/x-patch; charset="us-ascii"
 
1506
  MIME-Version: 1.0
 
1507
  Content-Transfer-Encoding: 7bit
 
1508
  Content-Disposition: inline; filename=two.diff
 
1509
  
 
1510
  # HG changeset patch
 
1511
  # User test
 
1512
  # Date 3 0
 
1513
  #      Thu Jan 01 00:00:03 1970 +0000
 
1514
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1515
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1516
  c
 
1517
  
 
1518
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1519
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1520
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1521
  @@ -0,0 +1,1 @@
 
1522
  +c
 
1523
  
 
1524
  --===*-- (glob)
 
1525
 
 
1526
test inline for multiple named/unnamed patches:
 
1527
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1
 
1528
  this patch series consists of 2 patches.
 
1529
  
 
1530
  
 
1531
  Write the introductory message for the patch series.
 
1532
  
 
1533
  
 
1534
  displaying [PATCH 0 of 2] test ...
 
1535
  Content-Type: text/plain; charset="us-ascii"
 
1536
  MIME-Version: 1.0
 
1537
  Content-Transfer-Encoding: 7bit
 
1538
  Subject: [PATCH 0 of 2] test
 
1539
  Message-Id: <patchbomb.60@*> (glob)
 
1540
  User-Agent: Mercurial-patchbomb/* (glob)
 
1541
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1542
  From: quux
 
1543
  To: foo
 
1544
  Cc: bar
 
1545
  
 
1546
  
 
1547
  displaying [PATCH 1 of 2] a ...
 
1548
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
1549
  MIME-Version: 1.0
 
1550
  Subject: [PATCH 1 of 2] a
 
1551
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1552
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
 
1553
  In-Reply-To: <patchbomb.60@*> (glob)
 
1554
  References: <patchbomb.60@*> (glob)
 
1555
  User-Agent: Mercurial-patchbomb/* (glob)
 
1556
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1557
  From: quux
 
1558
  To: foo
 
1559
  Cc: bar
 
1560
  
 
1561
  --===* (glob)
 
1562
  Content-Type: text/x-patch; charset="us-ascii"
 
1563
  MIME-Version: 1.0
 
1564
  Content-Transfer-Encoding: 7bit
 
1565
  Content-Disposition: inline; filename=t2-1.patch
 
1566
  
 
1567
  # HG changeset patch
 
1568
  # User test
 
1569
  # Date 1 0
 
1570
  #      Thu Jan 01 00:00:01 1970 +0000
 
1571
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1572
  # Parent  0000000000000000000000000000000000000000
 
1573
  a
 
1574
  
 
1575
  diff -r 000000000000 -r 8580ff50825a a
 
1576
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1577
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
1578
  @@ -0,0 +1,1 @@
 
1579
  +a
 
1580
  
 
1581
  --===*-- (glob)
 
1582
  displaying [PATCH 2 of 2] b ...
 
1583
  Content-Type: multipart/mixed; boundary="===*" (glob)
 
1584
  MIME-Version: 1.0
 
1585
  Subject: [PATCH 2 of 2] b
 
1586
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1587
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
 
1588
  In-Reply-To: <patchbomb.60@*> (glob)
 
1589
  References: <patchbomb.60@*> (glob)
 
1590
  User-Agent: Mercurial-patchbomb/* (glob)
 
1591
  Date: Thu, 01 Jan 1970 00:01:02 +0000
 
1592
  From: quux
 
1593
  To: foo
 
1594
  Cc: bar
 
1595
  
 
1596
  --===* (glob)
 
1597
  Content-Type: text/x-patch; charset="us-ascii"
 
1598
  MIME-Version: 1.0
 
1599
  Content-Transfer-Encoding: 7bit
 
1600
  Content-Disposition: inline; filename=one.patch
 
1601
  
 
1602
  # HG changeset patch
 
1603
  # User test
 
1604
  # Date 2 0
 
1605
  #      Thu Jan 01 00:00:02 1970 +0000
 
1606
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1607
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1608
  b
 
1609
  
 
1610
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
1611
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1612
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
1613
  @@ -0,0 +1,1 @@
 
1614
  +b
 
1615
  
 
1616
  --===*-- (glob)
 
1617
 
 
1618
 
 
1619
test inreplyto:
 
1620
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
 
1621
  >  -r tip
 
1622
  this patch series consists of 1 patches.
 
1623
  
 
1624
  
 
1625
  displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
 
1626
  Content-Type: text/plain; charset="us-ascii"
 
1627
  MIME-Version: 1.0
 
1628
  Content-Transfer-Encoding: 7bit
 
1629
  Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
 
1630
  X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
 
1631
  Message-Id: <7aead2484924c445ad8c.60@*> (glob)
 
1632
  In-Reply-To: <baz>
 
1633
  References: <baz>
 
1634
  User-Agent: Mercurial-patchbomb/* (glob)
 
1635
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1636
  From: quux
 
1637
  To: foo
 
1638
  Cc: bar
 
1639
  
 
1640
  # HG changeset patch
 
1641
  # User test
 
1642
  # Date 0 0
 
1643
  #      Thu Jan 01 00:00:00 1970 +0000
 
1644
  # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
 
1645
  # Parent  045ca29b1ea20e4940411e695e20e521f2f0f98e
 
1646
  Added tag two, two.diff for changeset ff2c9fa2018b
 
1647
  
 
1648
  diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
 
1649
  --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
 
1650
  +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
 
1651
  @@ -2,3 +2,5 @@
 
1652
   8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
 
1653
   97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
 
1654
   97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
 
1655
  +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
 
1656
  +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
 
1657
  
 
1658
no intro message in non-interactive mode
 
1659
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
 
1660
  >  -r 0:1
 
1661
  this patch series consists of 2 patches.
 
1662
  
 
1663
  (optional) Subject: [PATCH 0 of 2] 
 
1664
  
 
1665
  displaying [PATCH 1 of 2] a ...
 
1666
  Content-Type: text/plain; charset="us-ascii"
 
1667
  MIME-Version: 1.0
 
1668
  Content-Transfer-Encoding: 7bit
 
1669
  Subject: [PATCH 1 of 2] a
 
1670
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1671
  Message-Id: <8580ff50825a50c8f716.60@*> (glob)
 
1672
  In-Reply-To: <baz>
 
1673
  References: <baz>
 
1674
  User-Agent: Mercurial-patchbomb/* (glob)
 
1675
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1676
  From: quux
 
1677
  To: foo
 
1678
  Cc: bar
 
1679
  
 
1680
  # HG changeset patch
 
1681
  # User test
 
1682
  # Date 1 0
 
1683
  #      Thu Jan 01 00:00:01 1970 +0000
 
1684
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1685
  # Parent  0000000000000000000000000000000000000000
 
1686
  a
 
1687
  
 
1688
  diff -r 000000000000 -r 8580ff50825a a
 
1689
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1690
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
1691
  @@ -0,0 +1,1 @@
 
1692
  +a
 
1693
  
 
1694
  displaying [PATCH 2 of 2] b ...
 
1695
  Content-Type: text/plain; charset="us-ascii"
 
1696
  MIME-Version: 1.0
 
1697
  Content-Transfer-Encoding: 7bit
 
1698
  Subject: [PATCH 2 of 2] b
 
1699
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1700
  Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
 
1701
  In-Reply-To: <baz>
 
1702
  References: <baz>
 
1703
  User-Agent: Mercurial-patchbomb/* (glob)
 
1704
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1705
  From: quux
 
1706
  To: foo
 
1707
  Cc: bar
 
1708
  
 
1709
  # HG changeset patch
 
1710
  # User test
 
1711
  # Date 2 0
 
1712
  #      Thu Jan 01 00:00:02 1970 +0000
 
1713
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1714
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1715
  b
 
1716
  
 
1717
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
1718
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1719
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
1720
  @@ -0,0 +1,1 @@
 
1721
  +b
 
1722
  
 
1723
 
 
1724
 
 
1725
 
 
1726
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
 
1727
  >  -s test -r 0:1
 
1728
  this patch series consists of 2 patches.
 
1729
  
 
1730
  
 
1731
  Write the introductory message for the patch series.
 
1732
  
 
1733
  
 
1734
  displaying [PATCH 0 of 2] test ...
 
1735
  Content-Type: text/plain; charset="us-ascii"
 
1736
  MIME-Version: 1.0
 
1737
  Content-Transfer-Encoding: 7bit
 
1738
  Subject: [PATCH 0 of 2] test
 
1739
  Message-Id: <patchbomb.60@*> (glob)
 
1740
  In-Reply-To: <baz>
 
1741
  References: <baz>
 
1742
  User-Agent: Mercurial-patchbomb/* (glob)
 
1743
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1744
  From: quux
 
1745
  To: foo
 
1746
  Cc: bar
 
1747
  
 
1748
  
 
1749
  displaying [PATCH 1 of 2] a ...
 
1750
  Content-Type: text/plain; charset="us-ascii"
 
1751
  MIME-Version: 1.0
 
1752
  Content-Transfer-Encoding: 7bit
 
1753
  Subject: [PATCH 1 of 2] a
 
1754
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1755
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
 
1756
  In-Reply-To: <patchbomb.60@*> (glob)
 
1757
  References: <patchbomb.60@*> (glob)
 
1758
  User-Agent: Mercurial-patchbomb/* (glob)
 
1759
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1760
  From: quux
 
1761
  To: foo
 
1762
  Cc: bar
 
1763
  
 
1764
  # HG changeset patch
 
1765
  # User test
 
1766
  # Date 1 0
 
1767
  #      Thu Jan 01 00:00:01 1970 +0000
 
1768
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1769
  # Parent  0000000000000000000000000000000000000000
 
1770
  a
 
1771
  
 
1772
  diff -r 000000000000 -r 8580ff50825a a
 
1773
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1774
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
1775
  @@ -0,0 +1,1 @@
 
1776
  +a
 
1777
  
 
1778
  displaying [PATCH 2 of 2] b ...
 
1779
  Content-Type: text/plain; charset="us-ascii"
 
1780
  MIME-Version: 1.0
 
1781
  Content-Transfer-Encoding: 7bit
 
1782
  Subject: [PATCH 2 of 2] b
 
1783
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1784
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
 
1785
  In-Reply-To: <patchbomb.60@*> (glob)
 
1786
  References: <patchbomb.60@*> (glob)
 
1787
  User-Agent: Mercurial-patchbomb/* (glob)
 
1788
  Date: Thu, 01 Jan 1970 00:01:02 +0000
 
1789
  From: quux
 
1790
  To: foo
 
1791
  Cc: bar
 
1792
  
 
1793
  # HG changeset patch
 
1794
  # User test
 
1795
  # Date 2 0
 
1796
  #      Thu Jan 01 00:00:02 1970 +0000
 
1797
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1798
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1799
  b
 
1800
  
 
1801
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
1802
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1803
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
1804
  @@ -0,0 +1,1 @@
 
1805
  +b
 
1806
  
 
1807
 
 
1808
test single flag for single patch:
 
1809
  $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
 
1810
  >  -r 2
 
1811
  this patch series consists of 1 patches.
 
1812
  
 
1813
  
 
1814
  displaying [PATCH fooFlag] test ...
 
1815
  Content-Type: text/plain; charset="us-ascii"
 
1816
  MIME-Version: 1.0
 
1817
  Content-Transfer-Encoding: 7bit
 
1818
  Subject: [PATCH fooFlag] test
 
1819
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1820
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
1821
  User-Agent: Mercurial-patchbomb/* (glob)
 
1822
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1823
  From: quux
 
1824
  To: foo
 
1825
  Cc: bar
 
1826
  
 
1827
  # HG changeset patch
 
1828
  # User test
 
1829
  # Date 3 0
 
1830
  #      Thu Jan 01 00:00:03 1970 +0000
 
1831
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1832
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1833
  c
 
1834
  
 
1835
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1836
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1837
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1838
  @@ -0,0 +1,1 @@
 
1839
  +c
 
1840
  
 
1841
 
 
1842
test single flag for multiple patches:
 
1843
  $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
 
1844
  >  -r 0:1
 
1845
  this patch series consists of 2 patches.
 
1846
  
 
1847
  
 
1848
  Write the introductory message for the patch series.
 
1849
  
 
1850
  
 
1851
  displaying [PATCH 0 of 2 fooFlag] test ...
 
1852
  Content-Type: text/plain; charset="us-ascii"
 
1853
  MIME-Version: 1.0
 
1854
  Content-Transfer-Encoding: 7bit
 
1855
  Subject: [PATCH 0 of 2 fooFlag] test
 
1856
  Message-Id: <patchbomb.60@*> (glob)
 
1857
  User-Agent: Mercurial-patchbomb/* (glob)
 
1858
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1859
  From: quux
 
1860
  To: foo
 
1861
  Cc: bar
 
1862
  
 
1863
  
 
1864
  displaying [PATCH 1 of 2 fooFlag] a ...
 
1865
  Content-Type: text/plain; charset="us-ascii"
 
1866
  MIME-Version: 1.0
 
1867
  Content-Transfer-Encoding: 7bit
 
1868
  Subject: [PATCH 1 of 2 fooFlag] a
 
1869
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1870
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
 
1871
  In-Reply-To: <patchbomb.60@*> (glob)
 
1872
  References: <patchbomb.60@*> (glob)
 
1873
  User-Agent: Mercurial-patchbomb/* (glob)
 
1874
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1875
  From: quux
 
1876
  To: foo
 
1877
  Cc: bar
 
1878
  
 
1879
  # HG changeset patch
 
1880
  # User test
 
1881
  # Date 1 0
 
1882
  #      Thu Jan 01 00:00:01 1970 +0000
 
1883
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1884
  # Parent  0000000000000000000000000000000000000000
 
1885
  a
 
1886
  
 
1887
  diff -r 000000000000 -r 8580ff50825a a
 
1888
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1889
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
1890
  @@ -0,0 +1,1 @@
 
1891
  +a
 
1892
  
 
1893
  displaying [PATCH 2 of 2 fooFlag] b ...
 
1894
  Content-Type: text/plain; charset="us-ascii"
 
1895
  MIME-Version: 1.0
 
1896
  Content-Transfer-Encoding: 7bit
 
1897
  Subject: [PATCH 2 of 2 fooFlag] b
 
1898
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1899
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
 
1900
  In-Reply-To: <patchbomb.60@*> (glob)
 
1901
  References: <patchbomb.60@*> (glob)
 
1902
  User-Agent: Mercurial-patchbomb/* (glob)
 
1903
  Date: Thu, 01 Jan 1970 00:01:02 +0000
 
1904
  From: quux
 
1905
  To: foo
 
1906
  Cc: bar
 
1907
  
 
1908
  # HG changeset patch
 
1909
  # User test
 
1910
  # Date 2 0
 
1911
  #      Thu Jan 01 00:00:02 1970 +0000
 
1912
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1913
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1914
  b
 
1915
  
 
1916
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
1917
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1918
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
1919
  @@ -0,0 +1,1 @@
 
1920
  +b
 
1921
  
 
1922
 
 
1923
test multiple flags for single patch:
 
1924
  $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
 
1925
  >  -c bar -s test -r 2
 
1926
  this patch series consists of 1 patches.
 
1927
  
 
1928
  
 
1929
  displaying [PATCH fooFlag barFlag] test ...
 
1930
  Content-Type: text/plain; charset="us-ascii"
 
1931
  MIME-Version: 1.0
 
1932
  Content-Transfer-Encoding: 7bit
 
1933
  Subject: [PATCH fooFlag barFlag] test
 
1934
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1935
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
 
1936
  User-Agent: Mercurial-patchbomb/* (glob)
 
1937
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1938
  From: quux
 
1939
  To: foo
 
1940
  Cc: bar
 
1941
  
 
1942
  # HG changeset patch
 
1943
  # User test
 
1944
  # Date 3 0
 
1945
  #      Thu Jan 01 00:00:03 1970 +0000
 
1946
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
1947
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
1948
  c
 
1949
  
 
1950
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
1951
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
1952
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
1953
  @@ -0,0 +1,1 @@
 
1954
  +c
 
1955
  
 
1956
 
 
1957
test multiple flags for multiple patches:
 
1958
  $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
 
1959
  >  -c bar -s test -r 0:1
 
1960
  this patch series consists of 2 patches.
 
1961
  
 
1962
  
 
1963
  Write the introductory message for the patch series.
 
1964
  
 
1965
  
 
1966
  displaying [PATCH 0 of 2 fooFlag barFlag] test ...
 
1967
  Content-Type: text/plain; charset="us-ascii"
 
1968
  MIME-Version: 1.0
 
1969
  Content-Transfer-Encoding: 7bit
 
1970
  Subject: [PATCH 0 of 2 fooFlag barFlag] test
 
1971
  Message-Id: <patchbomb.60@*> (glob)
 
1972
  User-Agent: Mercurial-patchbomb/* (glob)
 
1973
  Date: Thu, 01 Jan 1970 00:01:00 +0000
 
1974
  From: quux
 
1975
  To: foo
 
1976
  Cc: bar
 
1977
  
 
1978
  
 
1979
  displaying [PATCH 1 of 2 fooFlag barFlag] a ...
 
1980
  Content-Type: text/plain; charset="us-ascii"
 
1981
  MIME-Version: 1.0
 
1982
  Content-Transfer-Encoding: 7bit
 
1983
  Subject: [PATCH 1 of 2 fooFlag barFlag] a
 
1984
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1985
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
 
1986
  In-Reply-To: <patchbomb.60@*> (glob)
 
1987
  References: <patchbomb.60@*> (glob)
 
1988
  User-Agent: Mercurial-patchbomb/* (glob)
 
1989
  Date: Thu, 01 Jan 1970 00:01:01 +0000
 
1990
  From: quux
 
1991
  To: foo
 
1992
  Cc: bar
 
1993
  
 
1994
  # HG changeset patch
 
1995
  # User test
 
1996
  # Date 1 0
 
1997
  #      Thu Jan 01 00:00:01 1970 +0000
 
1998
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
1999
  # Parent  0000000000000000000000000000000000000000
 
2000
  a
 
2001
  
 
2002
  diff -r 000000000000 -r 8580ff50825a a
 
2003
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2004
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
2005
  @@ -0,0 +1,1 @@
 
2006
  +a
 
2007
  
 
2008
  displaying [PATCH 2 of 2 fooFlag barFlag] b ...
 
2009
  Content-Type: text/plain; charset="us-ascii"
 
2010
  MIME-Version: 1.0
 
2011
  Content-Transfer-Encoding: 7bit
 
2012
  Subject: [PATCH 2 of 2 fooFlag barFlag] b
 
2013
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
2014
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
 
2015
  In-Reply-To: <patchbomb.60@*> (glob)
 
2016
  References: <patchbomb.60@*> (glob)
 
2017
  User-Agent: Mercurial-patchbomb/* (glob)
 
2018
  Date: Thu, 01 Jan 1970 00:01:02 +0000
 
2019
  From: quux
 
2020
  To: foo
 
2021
  Cc: bar
 
2022
  
 
2023
  # HG changeset patch
 
2024
  # User test
 
2025
  # Date 2 0
 
2026
  #      Thu Jan 01 00:00:02 1970 +0000
 
2027
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
2028
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
 
2029
  b
 
2030
  
 
2031
  diff -r 8580ff50825a -r 97d72e5f12c7 b
 
2032
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2033
  +++ b/b       Thu Jan 01 00:00:02 1970 +0000
 
2034
  @@ -0,0 +1,1 @@
 
2035
  +b
 
2036
  
 
2037
 
 
2038
test multi-address parsing:
 
2039
  $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
 
2040
  >  -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
 
2041
  >  --config email.bcc='"Quux, A." <quux>'
 
2042
  this patch series consists of 1 patches.
 
2043
  
 
2044
  
 
2045
  sending [PATCH] test ...
 
2046
  $ cat < tmp.mbox
 
2047
  From quux ... ... .. ..:..:.. .... (re)
 
2048
  Content-Type: text/plain; charset="us-ascii"
 
2049
  MIME-Version: 1.0
 
2050
  Content-Transfer-Encoding: 7bit
 
2051
  Subject: [PATCH] test
 
2052
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
2053
  Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
 
2054
  User-Agent: Mercurial-patchbomb/* (glob)
 
2055
  Date: Tue, 01 Jan 1980 00:01:00 +0000
 
2056
  From: quux
 
2057
  To: spam <spam>, eggs, toast
 
2058
  Cc: foo, bar@example.com, "A, B <>" <a@example.com>
 
2059
  Bcc: "Quux, A." <quux>
 
2060
  
 
2061
  # HG changeset patch
 
2062
  # User test
 
2063
  # Date 1 0
 
2064
  #      Thu Jan 01 00:00:01 1970 +0000
 
2065
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
2066
  # Parent  0000000000000000000000000000000000000000
 
2067
  a
 
2068
  
 
2069
  diff -r 000000000000 -r 8580ff50825a a
 
2070
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2071
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
2072
  @@ -0,0 +1,1 @@
 
2073
  +a
 
2074
  
 
2075
  
 
2076
 
 
2077
test multi-byte domain parsing:
 
2078
  $ UUML=`python -c 'import sys; sys.stdout.write("\374")'`
 
2079
  $ HGENCODING=iso-8859-1
 
2080
  $ export HGENCODING
 
2081
  $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
 
2082
  this patch series consists of 1 patches.
 
2083
  
 
2084
  Cc: 
 
2085
  
 
2086
  sending [PATCH] test ...
 
2087
 
 
2088
  $ cat tmp.mbox
 
2089
  From quux ... ... .. ..:..:.. .... (re)
 
2090
  Content-Type: text/plain; charset="us-ascii"
 
2091
  MIME-Version: 1.0
 
2092
  Content-Transfer-Encoding: 7bit
 
2093
  Subject: [PATCH] test
 
2094
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
2095
  Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
 
2096
  User-Agent: Mercurial-patchbomb/* (glob)
 
2097
  Date: Tue, 01 Jan 1980 00:01:00 +0000
 
2098
  From: quux
 
2099
  To: bar@xn--nicode-2ya.com
 
2100
  
 
2101
  # HG changeset patch
 
2102
  # User test
 
2103
  # Date 1 0
 
2104
  #      Thu Jan 01 00:00:01 1970 +0000
 
2105
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
2106
  # Parent  0000000000000000000000000000000000000000
 
2107
  a
 
2108
  
 
2109
  diff -r 000000000000 -r 8580ff50825a a
 
2110
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2111
  +++ b/a       Thu Jan 01 00:00:01 1970 +0000
 
2112
  @@ -0,0 +1,1 @@
 
2113
  +a
 
2114
  
 
2115
  
 
2116
 
 
2117
test outgoing:
 
2118
  $ hg up 1
 
2119
  0 files updated, 0 files merged, 6 files removed, 0 files unresolved
 
2120
 
 
2121
  $ hg branch test
 
2122
  marked working directory as branch test
 
2123
  (branches are permanent and global, did you want a bookmark?)
 
2124
 
 
2125
  $ echo d > d
 
2126
  $ hg add d
 
2127
  $ hg ci -md -d '4 0'
 
2128
  $ echo d >> d
 
2129
  $ hg ci -mdd -d '5 0'
 
2130
  $ hg --config extensions.graphlog= glog --template "{rev}:{node|short} {desc|firstline}\n"
 
2131
  @  10:3b6f1ec9dde9 dd
 
2132
  |
 
2133
  o  9:2f9fa9b998c5 d
 
2134
  |
 
2135
  | o  8:7aead2484924 Added tag two, two.diff for changeset ff2c9fa2018b
 
2136
  | |
 
2137
  | o  7:045ca29b1ea2 Added tag one, one.patch for changeset 97d72e5f12c7
 
2138
  | |
 
2139
  | o  6:5d5ef15dfe5e Added tag zero, zero.foo for changeset 8580ff50825a
 
2140
  | |
 
2141
  | o  5:240fb913fc1b isolatin 8-bit encoding
 
2142
  | |
 
2143
  | o  4:a2ea8fc83dd8 long line
 
2144
  | |
 
2145
  | o  3:909a00e13e9d utf-8 content
 
2146
  | |
 
2147
  | o  2:ff2c9fa2018b c
 
2148
  |/
 
2149
  o  1:97d72e5f12c7 b
 
2150
  |
 
2151
  o  0:8580ff50825a a
 
2152
  
 
2153
  $ hg phase --force --secret -r 10
 
2154
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
 
2155
  comparing with ../t
 
2156
  From [test]: test
 
2157
  this patch series consists of 6 patches.
 
2158
  
 
2159
  
 
2160
  Write the introductory message for the patch series.
 
2161
  
 
2162
  Cc: 
 
2163
  
 
2164
  displaying [PATCH 0 of 6] test ...
 
2165
  Content-Type: text/plain; charset="us-ascii"
 
2166
  MIME-Version: 1.0
 
2167
  Content-Transfer-Encoding: 7bit
 
2168
  Subject: [PATCH 0 of 6] test
 
2169
  Message-Id: <patchbomb.315532860@*> (glob)
 
2170
  User-Agent: Mercurial-patchbomb/* (glob)
 
2171
  Date: Tue, 01 Jan 1980 00:01:00 +0000
 
2172
  From: test
 
2173
  To: foo
 
2174
  
 
2175
  
 
2176
  displaying [PATCH 1 of 6] c ...
 
2177
  Content-Type: text/plain; charset="us-ascii"
 
2178
  MIME-Version: 1.0
 
2179
  Content-Transfer-Encoding: 7bit
 
2180
  Subject: [PATCH 1 of 6] c
 
2181
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
2182
  Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
 
2183
  In-Reply-To: <patchbomb.315532860@*> (glob)
 
2184
  References: <patchbomb.315532860@*> (glob)
 
2185
  User-Agent: Mercurial-patchbomb/* (glob)
 
2186
  Date: Tue, 01 Jan 1980 00:01:01 +0000
 
2187
  From: test
 
2188
  To: foo
 
2189
  
 
2190
  # HG changeset patch
 
2191
  # User test
 
2192
  # Date 3 0
 
2193
  #      Thu Jan 01 00:00:03 1970 +0000
 
2194
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
2195
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
2196
  c
 
2197
  
 
2198
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
 
2199
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2200
  +++ b/c       Thu Jan 01 00:00:03 1970 +0000
 
2201
  @@ -0,0 +1,1 @@
 
2202
  +c
 
2203
  
 
2204
  displaying [PATCH 2 of 6] utf-8 content ...
 
2205
  Content-Type: text/plain; charset="us-ascii"
 
2206
  MIME-Version: 1.0
 
2207
  Content-Transfer-Encoding: 8bit
 
2208
  Subject: [PATCH 2 of 6] utf-8 content
 
2209
  X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
 
2210
  Message-Id: <909a00e13e9d78b575ae.315532862@*> (glob)
 
2211
  In-Reply-To: <patchbomb.315532860@*> (glob)
 
2212
  References: <patchbomb.315532860@*> (glob)
 
2213
  User-Agent: Mercurial-patchbomb/* (glob)
 
2214
  Date: Tue, 01 Jan 1980 00:01:02 +0000
 
2215
  From: test
 
2216
  To: foo
 
2217
  
 
2218
  # HG changeset patch
 
2219
  # User test
 
2220
  # Date 4 0
 
2221
  #      Thu Jan 01 00:00:04 1970 +0000
 
2222
  # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
 
2223
  # Parent  ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
2224
  utf-8 content
 
2225
  
 
2226
  diff -r ff2c9fa2018b -r 909a00e13e9d description
 
2227
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2228
  +++ b/description     Thu Jan 01 00:00:04 1970 +0000
 
2229
  @@ -0,0 +1,3 @@
 
2230
  +a multiline
 
2231
  +
 
2232
  +description
 
2233
  diff -r ff2c9fa2018b -r 909a00e13e9d utf
 
2234
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2235
  +++ b/utf     Thu Jan 01 00:00:04 1970 +0000
 
2236
  @@ -0,0 +1,1 @@
 
2237
  +h\xc3\xb6mma! (esc)
 
2238
  
 
2239
  displaying [PATCH 3 of 6] long line ...
 
2240
  Content-Type: text/plain; charset="us-ascii"
 
2241
  MIME-Version: 1.0
 
2242
  Content-Transfer-Encoding: quoted-printable
 
2243
  Subject: [PATCH 3 of 6] long line
 
2244
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
2245
  Message-Id: <a2ea8fc83dd8b93cfd86.315532863@*> (glob)
 
2246
  In-Reply-To: <patchbomb.315532860@*> (glob)
 
2247
  References: <patchbomb.315532860@*> (glob)
 
2248
  User-Agent: Mercurial-patchbomb/* (glob)
 
2249
  Date: Tue, 01 Jan 1980 00:01:03 +0000
 
2250
  From: test
 
2251
  To: foo
 
2252
  
 
2253
  # HG changeset patch
 
2254
  # User test
 
2255
  # Date 4 0
 
2256
  #      Thu Jan 01 00:00:04 1970 +0000
 
2257
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
2258
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
 
2259
  long line
 
2260
  
 
2261
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
 
2262
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2263
  +++ b/long    Thu Jan 01 00:00:04 1970 +0000
 
2264
  @@ -0,0 +1,4 @@
 
2265
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2266
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2267
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2268
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2269
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2270
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2271
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2272
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2273
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2274
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2275
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2276
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2277
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
 
2278
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
2279
  +foo
 
2280
  +
 
2281
  +bar
 
2282
  
 
2283
  displaying [PATCH 4 of 6] isolatin 8-bit encoding ...
 
2284
  Content-Type: text/plain; charset="us-ascii"
 
2285
  MIME-Version: 1.0
 
2286
  Content-Transfer-Encoding: 8bit
 
2287
  Subject: [PATCH 4 of 6] isolatin 8-bit encoding
 
2288
  X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
 
2289
  Message-Id: <240fb913fc1b7ff15ddb.315532864@*> (glob)
 
2290
  In-Reply-To: <patchbomb.315532860@*> (glob)
 
2291
  References: <patchbomb.315532860@*> (glob)
 
2292
  User-Agent: Mercurial-patchbomb/* (glob)
 
2293
  Date: Tue, 01 Jan 1980 00:01:04 +0000
 
2294
  From: test
 
2295
  To: foo
 
2296
  
 
2297
  # HG changeset patch
 
2298
  # User test
 
2299
  # Date 5 0
 
2300
  #      Thu Jan 01 00:00:05 1970 +0000
 
2301
  # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
 
2302
  # Parent  a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
2303
  isolatin 8-bit encoding
 
2304
  
 
2305
  diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
 
2306
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2307
  +++ b/isolatin        Thu Jan 01 00:00:05 1970 +0000
 
2308
  @@ -0,0 +1,1 @@
 
2309
  +h\xf6mma! (esc)
 
2310
  
 
2311
  displaying [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a ...
 
2312
  Content-Type: text/plain; charset="us-ascii"
 
2313
  MIME-Version: 1.0
 
2314
  Content-Transfer-Encoding: 7bit
 
2315
  Subject: [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a
 
2316
  X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
 
2317
  Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@*> (glob)
 
2318
  In-Reply-To: <patchbomb.315532860@*> (glob)
 
2319
  References: <patchbomb.315532860@*> (glob)
 
2320
  User-Agent: Mercurial-patchbomb/* (glob)
 
2321
  Date: Tue, 01 Jan 1980 00:01:05 +0000
 
2322
  From: test
 
2323
  To: foo
 
2324
  
 
2325
  # HG changeset patch
 
2326
  # User test
 
2327
  # Date 0 0
 
2328
  #      Thu Jan 01 00:00:00 1970 +0000
 
2329
  # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
 
2330
  # Parent  240fb913fc1b7ff15ddb9f33e73d82bf5277c720
 
2331
  Added tag zero, zero.foo for changeset 8580ff50825a
 
2332
  
 
2333
  diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
 
2334
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2335
  +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
 
2336
  @@ -0,0 +1,2 @@
 
2337
  +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
 
2338
  +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
 
2339
  
 
2340
  displaying [PATCH 6 of 6] d ...
 
2341
  Content-Type: text/plain; charset="us-ascii"
 
2342
  MIME-Version: 1.0
 
2343
  Content-Transfer-Encoding: 7bit
 
2344
  Subject: [PATCH 6 of 6] d
 
2345
  X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
 
2346
  Message-Id: <2f9fa9b998c5fe3ac2bd.315532866@*> (glob)
 
2347
  In-Reply-To: <patchbomb.315532860@*> (glob)
 
2348
  References: <patchbomb.315532860@*> (glob)
 
2349
  User-Agent: Mercurial-patchbomb/* (glob)
 
2350
  Date: Tue, 01 Jan 1980 00:01:06 +0000
 
2351
  From: test
 
2352
  To: foo
 
2353
  
 
2354
  # HG changeset patch
 
2355
  # User test
 
2356
  # Date 4 0
 
2357
  #      Thu Jan 01 00:00:04 1970 +0000
 
2358
  # Branch test
 
2359
  # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
 
2360
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
2361
  d
 
2362
  
 
2363
  diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
 
2364
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2365
  +++ b/d       Thu Jan 01 00:00:04 1970 +0000
 
2366
  @@ -0,0 +1,1 @@
 
2367
  +d
 
2368
  
 
2369
 
 
2370
dest#branch URIs:
 
2371
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
 
2372
  comparing with ../t
 
2373
  From [test]: test
 
2374
  this patch series consists of 1 patches.
 
2375
  
 
2376
  Cc: 
 
2377
  
 
2378
  displaying [PATCH] test ...
 
2379
  Content-Type: text/plain; charset="us-ascii"
 
2380
  MIME-Version: 1.0
 
2381
  Content-Transfer-Encoding: 7bit
 
2382
  Subject: [PATCH] test
 
2383
  X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
 
2384
  Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
 
2385
  User-Agent: Mercurial-patchbomb/* (glob)
 
2386
  Date: Tue, 01 Jan 1980 00:01:00 +0000
 
2387
  From: test
 
2388
  To: foo
 
2389
  
 
2390
  # HG changeset patch
 
2391
  # User test
 
2392
  # Date 4 0
 
2393
  #      Thu Jan 01 00:00:04 1970 +0000
 
2394
  # Branch test
 
2395
  # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
 
2396
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
2397
  d
 
2398
  
 
2399
  diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
 
2400
  --- /dev/null Thu Jan 01 00:00:00 1970 +0000
 
2401
  +++ b/d       Thu Jan 01 00:00:04 1970 +0000
 
2402
  @@ -0,0 +1,1 @@
 
2403
  +d
 
2404
  
 
2405
 
 
2406
  $ cd ..