##// END OF EJS Templates
tests: put some Python 3 polish on inline Python invocations...
Augie Fackler -
r39071:59846761 default
parent child Browse files
Show More
@@ -1,3071 +1,3079
1 1 Note for future hackers of patchbomb: this file is a bit heavy on
2 2 wildcards in test expectations due to how many things like hostnames
3 3 tend to make it into outputs. As a result, you may need to perform the
4 4 following regular expression substitutions:
5 5 @$HOSTNAME> -> @*> (glob)
6 6 Mercurial-patchbomb/.* -> Mercurial-patchbomb/* (glob)
7 7 /mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
8 8 --===+[0-9]+=+--$ -> --===*=-- (glob)
9 9 --===+[0-9]+=+$ -> --===*= (glob)
10 10
11 11 $ cat > prune-blank-after-boundary.py <<EOF
12 12 > from __future__ import absolute_import, print_function
13 13 > import sys
14 14 > skipblank = False
15 15 > trim = lambda x: x.strip(' \r\n')
16 16 > for l in sys.stdin:
17 17 > if trim(l).endswith('=--') or trim(l).endswith('=='):
18 18 > skipblank = True
19 19 > print(l, end='')
20 20 > continue
21 21 > if not trim(l) and skipblank:
22 22 > continue
23 23 > skipblank = False
24 24 > print(l, end='')
25 25 > EOF
26 26 $ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py"
27 27 $ echo "[extensions]" >> $HGRCPATH
28 28 $ echo "patchbomb=" >> $HGRCPATH
29 29
30 30 $ hg init t
31 31 $ cd t
32 32 $ echo a > a
33 33 $ hg commit -Ama -d '1 0'
34 34 adding a
35 35
36 36 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
37 37 this patch series consists of 1 patches.
38 38
39 39
40 40 displaying [PATCH] a ...
41 41 MIME-Version: 1.0
42 42 Content-Type: text/plain; charset="us-ascii"
43 43 Content-Transfer-Encoding: 7bit
44 44 Subject: [PATCH] a
45 45 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
46 46 X-Mercurial-Series-Index: 1
47 47 X-Mercurial-Series-Total: 1
48 48 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
49 49 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
50 50 User-Agent: Mercurial-patchbomb/* (glob)
51 51 Date: Thu, 01 Jan 1970 00:01:00 +0000
52 52 From: quux
53 53 To: foo
54 54 Cc: bar
55 55
56 56 # HG changeset patch
57 57 # User test
58 58 # Date 1 0
59 59 # Thu Jan 01 00:00:01 1970 +0000
60 60 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
61 61 # Parent 0000000000000000000000000000000000000000
62 62 a
63 63
64 64 diff -r 000000000000 -r 8580ff50825a a
65 65 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
66 66 +++ b/a Thu Jan 01 00:00:01 1970 +0000
67 67 @@ -0,0 +1,1 @@
68 68 +a
69 69
70 70
71 71 If --to is specified on the command line, it should override any
72 72 email.to config setting. Same for --cc:
73 73
74 74 $ hg email --date '1970-1-1 0:1' -n -f quux --to foo --cc bar -r tip \
75 75 > --config email.to=bob@example.com --config email.cc=alice@example.com
76 76 this patch series consists of 1 patches.
77 77
78 78
79 79 displaying [PATCH] a ...
80 80 MIME-Version: 1.0
81 81 Content-Type: text/plain; charset="us-ascii"
82 82 Content-Transfer-Encoding: 7bit
83 83 Subject: [PATCH] a
84 84 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
85 85 X-Mercurial-Series-Index: 1
86 86 X-Mercurial-Series-Total: 1
87 87 Message-Id: <*@*> (glob)
88 88 X-Mercurial-Series-Id: <*@*> (glob)
89 89 User-Agent: Mercurial-patchbomb/* (glob)
90 90 Date: Thu, 01 Jan 1970 00:01:00 +0000
91 91 From: quux
92 92 To: foo
93 93 Cc: bar
94 94
95 95 # HG changeset patch
96 96 # User test
97 97 # Date 1 0
98 98 # Thu Jan 01 00:00:01 1970 +0000
99 99 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
100 100 # Parent 0000000000000000000000000000000000000000
101 101 a
102 102
103 103 diff -r 000000000000 -r 8580ff50825a a
104 104 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
105 105 +++ b/a Thu Jan 01 00:00:01 1970 +0000
106 106 @@ -0,0 +1,1 @@
107 107 +a
108 108
109 109
110 110 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
111 111 > n
112 112 > EOF
113 113 this patch series consists of 1 patches.
114 114
115 115
116 116 Final summary:
117 117
118 118 From: quux
119 119 To: foo
120 120 Cc: bar
121 121 Subject: [PATCH] a
122 122 a | 1 +
123 123 1 files changed, 1 insertions(+), 0 deletions(-)
124 124
125 125 are you sure you want to send (yn)? n
126 126 abort: patchbomb canceled
127 127 [255]
128 128
129 129 $ hg --config ui.interactive=1 --config patchbomb.confirm=true email -n -f quux -t foo -c bar -r tip<<EOF
130 130 > n
131 131 > EOF
132 132 this patch series consists of 1 patches.
133 133
134 134
135 135 Final summary:
136 136
137 137 From: quux
138 138 To: foo
139 139 Cc: bar
140 140 Subject: [PATCH] a
141 141 a | 1 +
142 142 1 files changed, 1 insertions(+), 0 deletions(-)
143 143
144 144 are you sure you want to send (yn)? n
145 145 abort: patchbomb canceled
146 146 [255]
147 147
148 148
149 149 Test diff.git is respected
150 150 $ hg --config diff.git=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
151 151 this patch series consists of 1 patches.
152 152
153 153
154 154 displaying [PATCH] a ...
155 155 MIME-Version: 1.0
156 156 Content-Type: text/plain; charset="us-ascii"
157 157 Content-Transfer-Encoding: 7bit
158 158 Subject: [PATCH] a
159 159 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
160 160 X-Mercurial-Series-Index: 1
161 161 X-Mercurial-Series-Total: 1
162 162 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
163 163 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
164 164 User-Agent: Mercurial-patchbomb/* (glob)
165 165 Date: Thu, 01 Jan 1970 00:01:00 +0000
166 166 From: quux
167 167 To: foo
168 168 Cc: bar
169 169
170 170 # HG changeset patch
171 171 # User test
172 172 # Date 1 0
173 173 # Thu Jan 01 00:00:01 1970 +0000
174 174 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
175 175 # Parent 0000000000000000000000000000000000000000
176 176 a
177 177
178 178 diff --git a/a b/a
179 179 new file mode 100644
180 180 --- /dev/null
181 181 +++ b/a
182 182 @@ -0,0 +1,1 @@
183 183 +a
184 184
185 185
186 186
187 187 Test breaking format changes aren't
188 188 $ hg --config diff.noprefix=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
189 189 this patch series consists of 1 patches.
190 190
191 191
192 192 displaying [PATCH] a ...
193 193 MIME-Version: 1.0
194 194 Content-Type: text/plain; charset="us-ascii"
195 195 Content-Transfer-Encoding: 7bit
196 196 Subject: [PATCH] a
197 197 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
198 198 X-Mercurial-Series-Index: 1
199 199 X-Mercurial-Series-Total: 1
200 200 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
201 201 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
202 202 User-Agent: Mercurial-patchbomb/* (glob)
203 203 Date: Thu, 01 Jan 1970 00:01:00 +0000
204 204 From: quux
205 205 To: foo
206 206 Cc: bar
207 207
208 208 # HG changeset patch
209 209 # User test
210 210 # Date 1 0
211 211 # Thu Jan 01 00:00:01 1970 +0000
212 212 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
213 213 # Parent 0000000000000000000000000000000000000000
214 214 a
215 215
216 216 diff -r 000000000000 -r 8580ff50825a a
217 217 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
218 218 +++ b/a Thu Jan 01 00:00:01 1970 +0000
219 219 @@ -0,0 +1,1 @@
220 220 +a
221 221
222 222
223 223 $ echo b > b
224 224 $ hg commit -Amb -d '2 0'
225 225 adding b
226 226
227 227 $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
228 228 this patch series consists of 2 patches.
229 229
230 230
231 231 Write the introductory message for the patch series.
232 232
233 233
234 234 displaying [PATCH 0 of 2] test ...
235 235 MIME-Version: 1.0
236 236 Content-Type: text/plain; charset="us-ascii"
237 237 Content-Transfer-Encoding: 7bit
238 238 Subject: [PATCH 0 of 2] test
239 239 Message-Id: <patchbomb.120@*> (glob)
240 240 User-Agent: Mercurial-patchbomb/* (glob)
241 241 Date: Thu, 01 Jan 1970 00:02:00 +0000
242 242 From: quux
243 243 To: foo
244 244 Cc: bar
245 245
246 246
247 247 displaying [PATCH 1 of 2] a ...
248 248 MIME-Version: 1.0
249 249 Content-Type: text/plain; charset="us-ascii"
250 250 Content-Transfer-Encoding: 7bit
251 251 Subject: [PATCH 1 of 2] a
252 252 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
253 253 X-Mercurial-Series-Index: 1
254 254 X-Mercurial-Series-Total: 2
255 255 Message-Id: <8580ff50825a50c8f716.121@*> (glob)
256 256 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@*> (glob)
257 257 In-Reply-To: <patchbomb.120@*> (glob)
258 258 References: <patchbomb.120@*> (glob)
259 259 User-Agent: Mercurial-patchbomb/* (glob)
260 260 Date: Thu, 01 Jan 1970 00:02:01 +0000
261 261 From: quux
262 262 To: foo
263 263 Cc: bar
264 264
265 265 # HG changeset patch
266 266 # User test
267 267 # Date 1 0
268 268 # Thu Jan 01 00:00:01 1970 +0000
269 269 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
270 270 # Parent 0000000000000000000000000000000000000000
271 271 a
272 272
273 273 diff -r 000000000000 -r 8580ff50825a a
274 274 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
275 275 +++ b/a Thu Jan 01 00:00:01 1970 +0000
276 276 @@ -0,0 +1,1 @@
277 277 +a
278 278
279 279 displaying [PATCH 2 of 2] b ...
280 280 MIME-Version: 1.0
281 281 Content-Type: text/plain; charset="us-ascii"
282 282 Content-Transfer-Encoding: 7bit
283 283 Subject: [PATCH 2 of 2] b
284 284 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
285 285 X-Mercurial-Series-Index: 2
286 286 X-Mercurial-Series-Total: 2
287 287 Message-Id: <97d72e5f12c7e84f8506.122@*> (glob)
288 288 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@*> (glob)
289 289 In-Reply-To: <patchbomb.120@*> (glob)
290 290 References: <patchbomb.120@*> (glob)
291 291 User-Agent: Mercurial-patchbomb/* (glob)
292 292 Date: Thu, 01 Jan 1970 00:02:02 +0000
293 293 From: quux
294 294 To: foo
295 295 Cc: bar
296 296
297 297 # HG changeset patch
298 298 # User test
299 299 # Date 2 0
300 300 # Thu Jan 01 00:00:02 1970 +0000
301 301 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
302 302 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
303 303 b
304 304
305 305 diff -r 8580ff50825a -r 97d72e5f12c7 b
306 306 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
307 307 +++ b/b Thu Jan 01 00:00:02 1970 +0000
308 308 @@ -0,0 +1,1 @@
309 309 +b
310 310
311 311
312 312 .hg/last-email.txt
313 313
314 314 $ cat > editor.sh << '__EOF__'
315 315 > echo "a precious introductory message" > "$1"
316 316 > __EOF__
317 317 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null
318 318 $ cat .hg/last-email.txt
319 319 a precious introductory message
320 320
321 321 $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
322 322 > --config extensions.progress= --config progress.assume-tty=1 \
323 323 > --config progress.delay=0 --config progress.refresh=0 \
324 324 > --config progress.width=60 \
325 325 > --config extensions.mocktime=$TESTDIR/mocktime.py
326 326 this patch series consists of 2 patches.
327 327
328 328
329 329 Write the introductory message for the patch series.
330 330
331 331 \r (no-eol) (esc)
332 332 sending [ ] 0/3\r (no-eol) (esc)
333 333 \r (no-eol) (esc)
334 334 \r (no-eol) (esc)
335 335 sending [============> ] 1/3 01s\r (no-eol) (esc)
336 336 \r (no-eol) (esc)
337 337 \r (no-eol) (esc)
338 338 sending [==========================> ] 2/3 01s\r (no-eol) (esc)
339 339 \r (esc)
340 340 sending [PATCH 0 of 2] test ...
341 341 sending [PATCH 1 of 2] a ...
342 342 sending [PATCH 2 of 2] b ...
343 343
344 344 $ cd ..
345 345
346 346 $ hg clone -q t t2
347 347 $ cd t2
348 348 $ echo c > c
349 349 $ hg commit -Amc -d '3 0'
350 350 adding c
351 351
352 352 $ cat > description <<EOF
353 353 > a multiline
354 354 >
355 355 > description
356 356 > EOF
357 357
358 358
359 359 test bundle and description:
360 360 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
361 361 > -c bar -s test -r tip -b --desc description | $FILTERBOUNDARY
362 362 searching for changes
363 363 1 changesets found
364 364
365 365 displaying test ...
366 366 Content-Type: multipart/mixed; boundary="===*==" (glob)
367 367 MIME-Version: 1.0
368 368 Subject: test
369 369 Message-Id: <patchbomb.180@*> (glob)
370 370 User-Agent: Mercurial-patchbomb/* (glob)
371 371 Date: Thu, 01 Jan 1970 00:03:00 +0000
372 372 From: quux
373 373 To: foo
374 374 Cc: bar
375 375
376 376 --===*= (glob)
377 377 MIME-Version: 1.0
378 378 Content-Type: text/plain; charset="us-ascii"
379 379 Content-Transfer-Encoding: 7bit
380 380
381 381 a multiline
382 382
383 383 description
384 384
385 385 --===*= (glob)
386 386 Content-Type: application/x-mercurial-bundle
387 387 MIME-Version: 1.0
388 388 Content-Disposition: attachment; filename="bundle.hg"
389 389 Content-Transfer-Encoding: base64
390 390
391 391 SEcyMAAAAA5Db21wcmVzc2lvbj1CWkJaaDkxQVkmU1l91TAVAAAN////vFcSXL9/8H7R09C/578I
392 392 Ak0E4pe4SIIIgQSgGEQOcLABGYYNKgJgmhpp6mmjIZMCZNMhpgBBpkaYJpo9QaZMg02iaY2lCImK
393 393 emk02kmEAeoA0D01ANBoHqHqADTaj1NAAyZqA0Gg0KiYnqaepk0eoNDTCGj1A0eoyBoGjRkYBqAB
394 394 poNMmhkBhENSP0knlYZbqyEIYxkFdpDUS6roBDMgAGhkAqd92kEcgyeMo2MM366gpLNHjfKrhJPN
395 395 vdBCHAEDsYzAvzkHKxy5KWBAmh5e1nFttGChpsxrgmutRG0YrsSLWEBH9h95cbZEKFeUKYykRXHa
396 396 Bkt2OSgELsqqnWKeMudBR+YSZCOSHrwPz7B/Gfou7/L6QV6S0IgclBCitBVHMxMFq/vGwp5WHezM
397 397 JwhKTnH0OkMbmVjrAkQKR7VM2aNSXn+GzLOCzOQm0AJ1TLCpdSgnfFPcY7mGxAOyHXS1YEFVi5O9
398 398 I4EVBBd8VRgN4n1MAm8l6QQ+yB60hkeX/0ZZmKoQRINkEBxEDZU2HjIZMcwWRvZtbRIa5kgkGIb/
399 399 SkImFwIkDtQxyX+LuSKcKEg+6pgKgA==
400 400 --===============*==-- (glob)
401 401
402 402 with a specific bundle type
403 403 (binary part must be different)
404 404
405 405 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
406 406 > -c bar -s test -r tip -b --desc description \
407 407 > --config patchbomb.bundletype=gzip-v1 | $FILTERBOUNDARY
408 408 searching for changes
409 409 1 changesets found
410 410
411 411 displaying test ...
412 412 Content-Type: multipart/mixed; boundary="===*==" (glob)
413 413 MIME-Version: 1.0
414 414 Subject: test
415 415 Message-Id: <patchbomb.180@*> (glob)
416 416 User-Agent: Mercurial-patchbomb/* (glob)
417 417 Date: Thu, 01 Jan 1970 00:03:00 +0000
418 418 From: quux
419 419 To: foo
420 420 Cc: bar
421 421
422 422 --===*= (glob)
423 423 MIME-Version: 1.0
424 424 Content-Type: text/plain; charset="us-ascii"
425 425 Content-Transfer-Encoding: 7bit
426 426
427 427 a multiline
428 428
429 429 description
430 430
431 431 --===*= (glob)
432 432 Content-Type: application/x-mercurial-bundle
433 433 MIME-Version: 1.0
434 434 Content-Disposition: attachment; filename="bundle.hg"
435 435 Content-Transfer-Encoding: base64
436 436
437 437 SEcxMEdaeJxjYGBY8V9n/iLGbtFfJZuNk/euDCpWfrRy/vTrevFCx1/4t7J5LdeL0ix0Opx3kwEL
438 438 wKYXKqUJwqnG5sYWSWmmJsaWlqYWaRaWJpaWiWamZpYWRgZGxolJiabmSQbmZqlcQMV6QGwCxGzG
439 439 CgZcySARUyA2A2LGZKiZ3Y+Lu786z4z4MWXmsrAZCsqrl1az5y21PMcjpbThzWeXGT+/nutbmvvz
440 440 zXYS3BoGxdrJDIYmlimJJiZpRokmqYYmaSYWFknmSSkmhqbmliamiZYWxuYmBhbJBgZcUBNZQe5K
441 441 Epm7xF/LT+RLx/a9juFTomaYO/Rgsx4rwBN+IMCUDLOKAQBrsmti
442 442 --===============*==-- (glob)
443 443
444 444 utf-8 patch:
445 445 $ $PYTHON -c 'fp = open("utf", "wb"); fp.write(b"h\xC3\xB6mma!\n"); fp.close();'
446 446 $ hg commit -A -d '4 0' -m 'utf-8 content'
447 447 adding description
448 448 adding utf
449 449
450 450 no mime encoding for email --test:
451 451 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
452 452 this patch series consists of 1 patches.
453 453
454 454
455 455 displaying [PATCH] utf-8 content ...
456 456 MIME-Version: 1.0
457 457 Content-Type: text/plain; charset="us-ascii"
458 458 Content-Transfer-Encoding: 8bit
459 459 Subject: [PATCH] utf-8 content
460 460 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
461 461 X-Mercurial-Series-Index: 1
462 462 X-Mercurial-Series-Total: 1
463 463 Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
464 464 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@*> (glob)
465 465 User-Agent: Mercurial-patchbomb/* (glob)
466 466 Date: Thu, 01 Jan 1970 00:04:00 +0000
467 467 From: quux
468 468 To: foo
469 469 Cc: bar
470 470
471 471 # HG changeset patch
472 472 # User test
473 473 # Date 4 0
474 474 # Thu Jan 01 00:00:04 1970 +0000
475 475 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
476 476 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
477 477 utf-8 content
478 478
479 479 diff -r ff2c9fa2018b -r 909a00e13e9d description
480 480 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
481 481 +++ b/description Thu Jan 01 00:00:04 1970 +0000
482 482 @@ -0,0 +1,3 @@
483 483 +a multiline
484 484 +
485 485 +description
486 486 diff -r ff2c9fa2018b -r 909a00e13e9d utf
487 487 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
488 488 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
489 489 @@ -0,0 +1,1 @@
490 490 +h\xc3\xb6mma! (esc)
491 491
492 492
493 493 mime encoded mbox (base64):
494 494 $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
495 495 this patch series consists of 1 patches.
496 496
497 497
498 498 sending [PATCH] utf-8 content ...
499 499
500 500 $ cat mbox
501 501 From quux ... ... .. ..:..:.. .... (re)
502 502 MIME-Version: 1.0
503 503 Content-Type: text/plain; charset="utf-8"
504 504 Content-Transfer-Encoding: base64
505 505 Subject: [PATCH] utf-8 content
506 506 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
507 507 X-Mercurial-Series-Index: 1
508 508 X-Mercurial-Series-Total: 1
509 509 Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
510 510 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@*> (glob)
511 511 User-Agent: Mercurial-patchbomb/* (glob)
512 512 Date: Thu, 01 Jan 1970 00:04:00 +0000
513 513 From: Q <quux>
514 514 To: foo
515 515 Cc: bar
516 516
517 517 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
518 518 biAwMSAwMDowMDowNCAxOTcwICswMDAwCiMgTm9kZSBJRCA5MDlhMDBlMTNlOWQ3OGI1NzVhZWVl
519 519 MjNkZGRiYWRhNDZkNWExNDNmCiMgUGFyZW50ICBmZjJjOWZhMjAxOGIxNWZhNzRiMzMzNjNiZGE5
520 520 NTI3MzIzZTJhOTlmCnV0Zi04IGNvbnRlbnQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIDkwOWEw
521 521 MGUxM2U5ZCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3
522 522 MCArMDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
523 523 QEAgLTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5
524 524 ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDow
525 525 MDowMCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
526 526 QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg==
527 527
528 528
529 $ $PYTHON -c 'print open("mbox").read().split("\n\n")[1].decode("base64")'
529 >>> import base64
530 >>> patch = base64.b64decode(open("mbox").read().split("\n\n")[1])
531 >>> if not isinstance(patch, str):
532 ... import sys
533 ... sys.stdout.flush()
534 ... junk = sys.stdout.buffer.write(patch + b"\n")
535 ... else:
536 ... print(patch)
530 537 # HG changeset patch
531 538 # User test
532 539 # Date 4 0
533 540 # Thu Jan 01 00:00:04 1970 +0000
534 541 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
535 542 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
536 543 utf-8 content
537 544
538 545 diff -r ff2c9fa2018b -r 909a00e13e9d description
539 546 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
540 547 +++ b/description Thu Jan 01 00:00:04 1970 +0000
541 548 @@ -0,0 +1,3 @@
542 549 +a multiline
543 550 +
544 551 +description
545 552 diff -r ff2c9fa2018b -r 909a00e13e9d utf
546 553 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
547 554 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
548 555 @@ -0,0 +1,1 @@
549 556 +h\xc3\xb6mma! (esc)
550 557
551 558 $ rm mbox
552 559
553 560 mime encoded mbox (quoted-printable):
554 $ $PYTHON -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
561 $ $PYTHON -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % (b"x" * 1024)); fp.close();'
555 562 $ hg commit -A -d '4 0' -m 'long line'
556 563 adding long
557 564
558 565 no mime encoding for email --test:
559 566 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
560 567 this patch series consists of 1 patches.
561 568
562 569
563 570 displaying [PATCH] long line ...
564 571 MIME-Version: 1.0
565 572 Content-Type: text/plain; charset="us-ascii"
566 573 Content-Transfer-Encoding: quoted-printable
567 574 Subject: [PATCH] long line
568 575 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
569 576 X-Mercurial-Series-Index: 1
570 577 X-Mercurial-Series-Total: 1
571 578 Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
572 579 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
573 580 User-Agent: Mercurial-patchbomb/* (glob)
574 581 Date: Thu, 01 Jan 1970 00:04:00 +0000
575 582 From: quux
576 583 To: foo
577 584 Cc: bar
578 585
579 586 # HG changeset patch
580 587 # User test
581 588 # Date 4 0
582 589 # Thu Jan 01 00:00:04 1970 +0000
583 590 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
584 591 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
585 592 long line
586 593
587 594 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
588 595 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
589 596 +++ b/long Thu Jan 01 00:00:04 1970 +0000
590 597 @@ -0,0 +1,4 @@
591 598 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
592 599 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
593 600 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
594 601 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
595 602 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
596 603 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
597 604 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
598 605 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
599 606 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
600 607 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
601 608 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
602 609 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
603 610 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
604 611 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
605 612 +foo
606 613 +
607 614 +bar
608 615
609 616
610 617 mime encoded mbox (quoted-printable):
611 618 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
612 619 this patch series consists of 1 patches.
613 620
614 621
615 622 sending [PATCH] long line ...
616 623 $ cat mbox
617 624 From quux ... ... .. ..:..:.. .... (re)
618 625 MIME-Version: 1.0
619 626 Content-Type: text/plain; charset="us-ascii"
620 627 Content-Transfer-Encoding: quoted-printable
621 628 Subject: [PATCH] long line
622 629 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
623 630 X-Mercurial-Series-Index: 1
624 631 X-Mercurial-Series-Total: 1
625 632 Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
626 633 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
627 634 User-Agent: Mercurial-patchbomb/* (glob)
628 635 Date: Thu, 01 Jan 1970 00:04:00 +0000
629 636 From: quux
630 637 To: foo
631 638 Cc: bar
632 639
633 640 # HG changeset patch
634 641 # User test
635 642 # Date 4 0
636 643 # Thu Jan 01 00:00:04 1970 +0000
637 644 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
638 645 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
639 646 long line
640 647
641 648 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
642 649 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
643 650 +++ b/long Thu Jan 01 00:00:04 1970 +0000
644 651 @@ -0,0 +1,4 @@
645 652 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
646 653 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
647 654 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
648 655 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
649 656 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
650 657 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
651 658 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
652 659 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
653 660 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
654 661 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
655 662 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
656 663 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
657 664 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
658 665 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
659 666 +foo
660 667 +
661 668 +bar
662 669
663 670
664 671
665 672 $ rm mbox
666 673
667 674 iso-8859-1 patch:
668 675 $ $PYTHON -c 'fp = open("isolatin", "wb"); fp.write(b"h\xF6mma!\n"); fp.close();'
669 676 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
670 677 adding isolatin
671 678
672 679 iso-8859-1 mbox:
673 680 $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
674 681 this patch series consists of 1 patches.
675 682
676 683
677 684 sending [PATCH] isolatin 8-bit encoding ...
678 685 $ cat mbox
679 686 From quux ... ... .. ..:..:.. .... (re)
680 687 MIME-Version: 1.0
681 688 Content-Type: text/plain; charset="iso-8859-1"
682 689 Content-Transfer-Encoding: quoted-printable
683 690 Subject: [PATCH] isolatin 8-bit encoding
684 691 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
685 692 X-Mercurial-Series-Index: 1
686 693 X-Mercurial-Series-Total: 1
687 694 Message-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
688 695 X-Mercurial-Series-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
689 696 User-Agent: Mercurial-patchbomb/* (glob)
690 697 Date: Thu, 01 Jan 1970 00:05:00 +0000
691 698 From: quux
692 699 To: foo
693 700 Cc: bar
694 701
695 702 # HG changeset patch
696 703 # User test
697 704 # Date 5 0
698 705 # Thu Jan 01 00:00:05 1970 +0000
699 706 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
700 707 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
701 708 isolatin 8-bit encoding
702 709
703 710 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
704 711 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
705 712 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
706 713 @@ -0,0 +1,1 @@
707 714 +h=F6mma!
708 715
709 716
710 717
711 718 test diffstat for single patch:
712 719 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
713 720 this patch series consists of 1 patches.
714 721
715 722
716 723 Final summary:
717 724
718 725 From: quux
719 726 To: foo
720 727 Cc: bar
721 728 Subject: [PATCH] test
722 729 c | 1 +
723 730 1 files changed, 1 insertions(+), 0 deletions(-)
724 731
725 732 are you sure you want to send (yn)? y
726 733
727 734 displaying [PATCH] test ...
728 735 MIME-Version: 1.0
729 736 Content-Type: text/plain; charset="us-ascii"
730 737 Content-Transfer-Encoding: 7bit
731 738 Subject: [PATCH] test
732 739 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
733 740 X-Mercurial-Series-Index: 1
734 741 X-Mercurial-Series-Total: 1
735 742 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
736 743 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
737 744 User-Agent: Mercurial-patchbomb/* (glob)
738 745 Date: Thu, 01 Jan 1970 00:01:00 +0000
739 746 From: quux
740 747 To: foo
741 748 Cc: bar
742 749
743 750 c | 1 +
744 751 1 files changed, 1 insertions(+), 0 deletions(-)
745 752
746 753
747 754 # HG changeset patch
748 755 # User test
749 756 # Date 3 0
750 757 # Thu Jan 01 00:00:03 1970 +0000
751 758 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
752 759 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
753 760 c
754 761
755 762 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
756 763 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
757 764 +++ b/c Thu Jan 01 00:00:03 1970 +0000
758 765 @@ -0,0 +1,1 @@
759 766 +c
760 767
761 768
762 769 test diffstat for multiple patches:
763 770 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
764 771 > -r 0:1
765 772 this patch series consists of 2 patches.
766 773
767 774
768 775 Write the introductory message for the patch series.
769 776
770 777
771 778 Final summary:
772 779
773 780 From: quux
774 781 To: foo
775 782 Cc: bar
776 783 Subject: [PATCH 0 of 2] test
777 784 a | 1 +
778 785 b | 1 +
779 786 2 files changed, 2 insertions(+), 0 deletions(-)
780 787 Subject: [PATCH 1 of 2] a
781 788 a | 1 +
782 789 1 files changed, 1 insertions(+), 0 deletions(-)
783 790 Subject: [PATCH 2 of 2] b
784 791 b | 1 +
785 792 1 files changed, 1 insertions(+), 0 deletions(-)
786 793
787 794 are you sure you want to send (yn)? y
788 795
789 796 displaying [PATCH 0 of 2] test ...
790 797 MIME-Version: 1.0
791 798 Content-Type: text/plain; charset="us-ascii"
792 799 Content-Transfer-Encoding: 7bit
793 800 Subject: [PATCH 0 of 2] test
794 801 Message-Id: <patchbomb.60@*> (glob)
795 802 User-Agent: Mercurial-patchbomb/* (glob)
796 803 Date: Thu, 01 Jan 1970 00:01:00 +0000
797 804 From: quux
798 805 To: foo
799 806 Cc: bar
800 807
801 808
802 809 a | 1 +
803 810 b | 1 +
804 811 2 files changed, 2 insertions(+), 0 deletions(-)
805 812
806 813 displaying [PATCH 1 of 2] a ...
807 814 MIME-Version: 1.0
808 815 Content-Type: text/plain; charset="us-ascii"
809 816 Content-Transfer-Encoding: 7bit
810 817 Subject: [PATCH 1 of 2] a
811 818 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
812 819 X-Mercurial-Series-Index: 1
813 820 X-Mercurial-Series-Total: 2
814 821 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
815 822 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
816 823 In-Reply-To: <patchbomb.60@*> (glob)
817 824 References: <patchbomb.60@*> (glob)
818 825 User-Agent: Mercurial-patchbomb/* (glob)
819 826 Date: Thu, 01 Jan 1970 00:01:01 +0000
820 827 From: quux
821 828 To: foo
822 829 Cc: bar
823 830
824 831 a | 1 +
825 832 1 files changed, 1 insertions(+), 0 deletions(-)
826 833
827 834
828 835 # HG changeset patch
829 836 # User test
830 837 # Date 1 0
831 838 # Thu Jan 01 00:00:01 1970 +0000
832 839 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
833 840 # Parent 0000000000000000000000000000000000000000
834 841 a
835 842
836 843 diff -r 000000000000 -r 8580ff50825a a
837 844 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
838 845 +++ b/a Thu Jan 01 00:00:01 1970 +0000
839 846 @@ -0,0 +1,1 @@
840 847 +a
841 848
842 849 displaying [PATCH 2 of 2] b ...
843 850 MIME-Version: 1.0
844 851 Content-Type: text/plain; charset="us-ascii"
845 852 Content-Transfer-Encoding: 7bit
846 853 Subject: [PATCH 2 of 2] b
847 854 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
848 855 X-Mercurial-Series-Index: 2
849 856 X-Mercurial-Series-Total: 2
850 857 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
851 858 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
852 859 In-Reply-To: <patchbomb.60@*> (glob)
853 860 References: <patchbomb.60@*> (glob)
854 861 User-Agent: Mercurial-patchbomb/* (glob)
855 862 Date: Thu, 01 Jan 1970 00:01:02 +0000
856 863 From: quux
857 864 To: foo
858 865 Cc: bar
859 866
860 867 b | 1 +
861 868 1 files changed, 1 insertions(+), 0 deletions(-)
862 869
863 870
864 871 # HG changeset patch
865 872 # User test
866 873 # Date 2 0
867 874 # Thu Jan 01 00:00:02 1970 +0000
868 875 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
869 876 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
870 877 b
871 878
872 879 diff -r 8580ff50825a -r 97d72e5f12c7 b
873 880 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
874 881 +++ b/b Thu Jan 01 00:00:02 1970 +0000
875 882 @@ -0,0 +1,1 @@
876 883 +b
877 884
878 885
879 886 test inline for single patch:
880 887 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | $FILTERBOUNDARY
881 888 this patch series consists of 1 patches.
882 889
883 890
884 891 displaying [PATCH] test ...
885 892 Content-Type: multipart/mixed; boundary="===*==" (glob)
886 893 MIME-Version: 1.0
887 894 Subject: [PATCH] test
888 895 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
889 896 X-Mercurial-Series-Index: 1
890 897 X-Mercurial-Series-Total: 1
891 898 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
892 899 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
893 900 User-Agent: Mercurial-patchbomb/* (glob)
894 901 Date: Thu, 01 Jan 1970 00:01:00 +0000
895 902 From: quux
896 903 To: foo
897 904 Cc: bar
898 905
899 906 --===*= (glob)
900 907 MIME-Version: 1.0
901 908 Content-Type: text/x-patch; charset="us-ascii"
902 909 Content-Transfer-Encoding: 7bit
903 910 Content-Disposition: inline; filename=t2.patch
904 911
905 912 # HG changeset patch
906 913 # User test
907 914 # Date 3 0
908 915 # Thu Jan 01 00:00:03 1970 +0000
909 916 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
910 917 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
911 918 c
912 919
913 920 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
914 921 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
915 922 +++ b/c Thu Jan 01 00:00:03 1970 +0000
916 923 @@ -0,0 +1,1 @@
917 924 +c
918 925
919 926 --===*=-- (glob)
920 927
921 928
922 929 test inline for single patch (quoted-printable):
923 930 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | $FILTERBOUNDARY
924 931 this patch series consists of 1 patches.
925 932
926 933
927 934 displaying [PATCH] test ...
928 935 Content-Type: multipart/mixed; boundary="===*==" (glob)
929 936 MIME-Version: 1.0
930 937 Subject: [PATCH] test
931 938 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
932 939 X-Mercurial-Series-Index: 1
933 940 X-Mercurial-Series-Total: 1
934 941 Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
935 942 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
936 943 User-Agent: Mercurial-patchbomb/* (glob)
937 944 Date: Thu, 01 Jan 1970 00:01:00 +0000
938 945 From: quux
939 946 To: foo
940 947 Cc: bar
941 948
942 949 --===*= (glob)
943 950 MIME-Version: 1.0
944 951 Content-Type: text/x-patch; charset="us-ascii"
945 952 Content-Transfer-Encoding: quoted-printable
946 953 Content-Disposition: inline; filename=t2.patch
947 954
948 955 # HG changeset patch
949 956 # User test
950 957 # Date 4 0
951 958 # Thu Jan 01 00:00:04 1970 +0000
952 959 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
953 960 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
954 961 long line
955 962
956 963 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
957 964 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
958 965 +++ b/long Thu Jan 01 00:00:04 1970 +0000
959 966 @@ -0,0 +1,4 @@
960 967 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
961 968 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
962 969 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
963 970 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
964 971 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
965 972 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
966 973 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
967 974 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
968 975 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
969 976 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
970 977 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
971 978 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
972 979 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
973 980 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
974 981 +foo
975 982 +
976 983 +bar
977 984
978 985 --===*=-- (glob)
979 986
980 987 test inline for multiple patches:
981 988 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
982 989 > -r 0:1 -r 4 | $FILTERBOUNDARY
983 990 this patch series consists of 3 patches.
984 991
985 992
986 993 Write the introductory message for the patch series.
987 994
988 995
989 996 displaying [PATCH 0 of 3] test ...
990 997 MIME-Version: 1.0
991 998 Content-Type: text/plain; charset="us-ascii"
992 999 Content-Transfer-Encoding: 7bit
993 1000 Subject: [PATCH 0 of 3] test
994 1001 Message-Id: <patchbomb.60@*> (glob)
995 1002 User-Agent: Mercurial-patchbomb/* (glob)
996 1003 Date: Thu, 01 Jan 1970 00:01:00 +0000
997 1004 From: quux
998 1005 To: foo
999 1006 Cc: bar
1000 1007
1001 1008
1002 1009 displaying [PATCH 1 of 3] a ...
1003 1010 Content-Type: multipart/mixed; boundary="===*==" (glob)
1004 1011 MIME-Version: 1.0
1005 1012 Subject: [PATCH 1 of 3] a
1006 1013 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1007 1014 X-Mercurial-Series-Index: 1
1008 1015 X-Mercurial-Series-Total: 3
1009 1016 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1010 1017 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1011 1018 In-Reply-To: <patchbomb.60@*> (glob)
1012 1019 References: <patchbomb.60@*> (glob)
1013 1020 User-Agent: Mercurial-patchbomb/* (glob)
1014 1021 Date: Thu, 01 Jan 1970 00:01:01 +0000
1015 1022 From: quux
1016 1023 To: foo
1017 1024 Cc: bar
1018 1025
1019 1026 --===*= (glob)
1020 1027 MIME-Version: 1.0
1021 1028 Content-Type: text/x-patch; charset="us-ascii"
1022 1029 Content-Transfer-Encoding: 7bit
1023 1030 Content-Disposition: inline; filename=t2-1.patch
1024 1031
1025 1032 # HG changeset patch
1026 1033 # User test
1027 1034 # Date 1 0
1028 1035 # Thu Jan 01 00:00:01 1970 +0000
1029 1036 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1030 1037 # Parent 0000000000000000000000000000000000000000
1031 1038 a
1032 1039
1033 1040 diff -r 000000000000 -r 8580ff50825a a
1034 1041 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1035 1042 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1036 1043 @@ -0,0 +1,1 @@
1037 1044 +a
1038 1045
1039 1046 --===*=-- (glob)
1040 1047 displaying [PATCH 2 of 3] b ...
1041 1048 Content-Type: multipart/mixed; boundary="===*==" (glob)
1042 1049 MIME-Version: 1.0
1043 1050 Subject: [PATCH 2 of 3] b
1044 1051 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1045 1052 X-Mercurial-Series-Index: 2
1046 1053 X-Mercurial-Series-Total: 3
1047 1054 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1048 1055 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1049 1056 In-Reply-To: <patchbomb.60@*> (glob)
1050 1057 References: <patchbomb.60@*> (glob)
1051 1058 User-Agent: Mercurial-patchbomb/* (glob)
1052 1059 Date: Thu, 01 Jan 1970 00:01:02 +0000
1053 1060 From: quux
1054 1061 To: foo
1055 1062 Cc: bar
1056 1063
1057 1064 --===*= (glob)
1058 1065 MIME-Version: 1.0
1059 1066 Content-Type: text/x-patch; charset="us-ascii"
1060 1067 Content-Transfer-Encoding: 7bit
1061 1068 Content-Disposition: inline; filename=t2-2.patch
1062 1069
1063 1070 # HG changeset patch
1064 1071 # User test
1065 1072 # Date 2 0
1066 1073 # Thu Jan 01 00:00:02 1970 +0000
1067 1074 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1068 1075 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1069 1076 b
1070 1077
1071 1078 diff -r 8580ff50825a -r 97d72e5f12c7 b
1072 1079 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1073 1080 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1074 1081 @@ -0,0 +1,1 @@
1075 1082 +b
1076 1083
1077 1084 --===*=-- (glob)
1078 1085 displaying [PATCH 3 of 3] long line ...
1079 1086 Content-Type: multipart/mixed; boundary="===*==" (glob)
1080 1087 MIME-Version: 1.0
1081 1088 Subject: [PATCH 3 of 3] long line
1082 1089 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1083 1090 X-Mercurial-Series-Index: 3
1084 1091 X-Mercurial-Series-Total: 3
1085 1092 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
1086 1093 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1087 1094 In-Reply-To: <patchbomb.60@*> (glob)
1088 1095 References: <patchbomb.60@*> (glob)
1089 1096 User-Agent: Mercurial-patchbomb/* (glob)
1090 1097 Date: Thu, 01 Jan 1970 00:01:03 +0000
1091 1098 From: quux
1092 1099 To: foo
1093 1100 Cc: bar
1094 1101
1095 1102 --===*= (glob)
1096 1103 MIME-Version: 1.0
1097 1104 Content-Type: text/x-patch; charset="us-ascii"
1098 1105 Content-Transfer-Encoding: quoted-printable
1099 1106 Content-Disposition: inline; filename=t2-3.patch
1100 1107
1101 1108 # HG changeset patch
1102 1109 # User test
1103 1110 # Date 4 0
1104 1111 # Thu Jan 01 00:00:04 1970 +0000
1105 1112 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1106 1113 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1107 1114 long line
1108 1115
1109 1116 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1110 1117 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1111 1118 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1112 1119 @@ -0,0 +1,4 @@
1113 1120 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1114 1121 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1115 1122 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1116 1123 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1117 1124 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1118 1125 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1119 1126 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1120 1127 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1121 1128 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1122 1129 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1123 1130 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1124 1131 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1125 1132 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1126 1133 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1127 1134 +foo
1128 1135 +
1129 1136 +bar
1130 1137
1131 1138 --===*=-- (glob)
1132 1139
1133 1140 test attach for single patch:
1134 1141 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | $FILTERBOUNDARY
1135 1142 this patch series consists of 1 patches.
1136 1143
1137 1144
1138 1145 displaying [PATCH] test ...
1139 1146 Content-Type: multipart/mixed; boundary="===*==" (glob)
1140 1147 MIME-Version: 1.0
1141 1148 Subject: [PATCH] test
1142 1149 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1143 1150 X-Mercurial-Series-Index: 1
1144 1151 X-Mercurial-Series-Total: 1
1145 1152 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1146 1153 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1147 1154 User-Agent: Mercurial-patchbomb/* (glob)
1148 1155 Date: Thu, 01 Jan 1970 00:01:00 +0000
1149 1156 From: quux
1150 1157 To: foo
1151 1158 Cc: bar
1152 1159
1153 1160 --===*= (glob)
1154 1161 MIME-Version: 1.0
1155 1162 Content-Type: text/plain; charset="us-ascii"
1156 1163 Content-Transfer-Encoding: 7bit
1157 1164
1158 1165 Patch subject is complete summary.
1159 1166
1160 1167
1161 1168
1162 1169 --===*= (glob)
1163 1170 MIME-Version: 1.0
1164 1171 Content-Type: text/x-patch; charset="us-ascii"
1165 1172 Content-Transfer-Encoding: 7bit
1166 1173 Content-Disposition: attachment; filename=t2.patch
1167 1174
1168 1175 # HG changeset patch
1169 1176 # User test
1170 1177 # Date 3 0
1171 1178 # Thu Jan 01 00:00:03 1970 +0000
1172 1179 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1173 1180 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1174 1181 c
1175 1182
1176 1183 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1177 1184 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1178 1185 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1179 1186 @@ -0,0 +1,1 @@
1180 1187 +c
1181 1188
1182 1189 --===*=-- (glob)
1183 1190
1184 1191 test attach for single patch (quoted-printable):
1185 1192 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | $FILTERBOUNDARY
1186 1193 this patch series consists of 1 patches.
1187 1194
1188 1195
1189 1196 displaying [PATCH] test ...
1190 1197 Content-Type: multipart/mixed; boundary="===*==" (glob)
1191 1198 MIME-Version: 1.0
1192 1199 Subject: [PATCH] test
1193 1200 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1194 1201 X-Mercurial-Series-Index: 1
1195 1202 X-Mercurial-Series-Total: 1
1196 1203 Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
1197 1204 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
1198 1205 User-Agent: Mercurial-patchbomb/* (glob)
1199 1206 Date: Thu, 01 Jan 1970 00:01:00 +0000
1200 1207 From: quux
1201 1208 To: foo
1202 1209 Cc: bar
1203 1210
1204 1211 --===*= (glob)
1205 1212 MIME-Version: 1.0
1206 1213 Content-Type: text/plain; charset="us-ascii"
1207 1214 Content-Transfer-Encoding: 7bit
1208 1215
1209 1216 Patch subject is complete summary.
1210 1217
1211 1218
1212 1219
1213 1220 --===*= (glob)
1214 1221 MIME-Version: 1.0
1215 1222 Content-Type: text/x-patch; charset="us-ascii"
1216 1223 Content-Transfer-Encoding: quoted-printable
1217 1224 Content-Disposition: attachment; filename=t2.patch
1218 1225
1219 1226 # HG changeset patch
1220 1227 # User test
1221 1228 # Date 4 0
1222 1229 # Thu Jan 01 00:00:04 1970 +0000
1223 1230 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1224 1231 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1225 1232 long line
1226 1233
1227 1234 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1228 1235 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1229 1236 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1230 1237 @@ -0,0 +1,4 @@
1231 1238 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1232 1239 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1233 1240 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1234 1241 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1235 1242 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1236 1243 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1237 1244 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1238 1245 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1239 1246 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1240 1247 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1241 1248 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1242 1249 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1243 1250 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1244 1251 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1245 1252 +foo
1246 1253 +
1247 1254 +bar
1248 1255
1249 1256 --===*=-- (glob)
1250 1257
1251 1258 test attach and body for single patch:
1252 1259 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2 | $FILTERBOUNDARY
1253 1260 this patch series consists of 1 patches.
1254 1261
1255 1262
1256 1263 displaying [PATCH] test ...
1257 1264 Content-Type: multipart/mixed; boundary="===*==" (glob)
1258 1265 MIME-Version: 1.0
1259 1266 Subject: [PATCH] test
1260 1267 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1261 1268 X-Mercurial-Series-Index: 1
1262 1269 X-Mercurial-Series-Total: 1
1263 1270 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1264 1271 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1265 1272 User-Agent: Mercurial-patchbomb/* (glob)
1266 1273 Date: Thu, 01 Jan 1970 00:01:00 +0000
1267 1274 From: quux
1268 1275 To: foo
1269 1276 Cc: bar
1270 1277
1271 1278 --===*= (glob)
1272 1279 MIME-Version: 1.0
1273 1280 Content-Type: text/plain; charset="us-ascii"
1274 1281 Content-Transfer-Encoding: 7bit
1275 1282
1276 1283 # HG changeset patch
1277 1284 # User test
1278 1285 # Date 3 0
1279 1286 # Thu Jan 01 00:00:03 1970 +0000
1280 1287 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1281 1288 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1282 1289 c
1283 1290
1284 1291 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1285 1292 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1286 1293 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1287 1294 @@ -0,0 +1,1 @@
1288 1295 +c
1289 1296
1290 1297 --===*= (glob)
1291 1298 MIME-Version: 1.0
1292 1299 Content-Type: text/x-patch; charset="us-ascii"
1293 1300 Content-Transfer-Encoding: 7bit
1294 1301 Content-Disposition: attachment; filename=t2.patch
1295 1302
1296 1303 # HG changeset patch
1297 1304 # User test
1298 1305 # Date 3 0
1299 1306 # Thu Jan 01 00:00:03 1970 +0000
1300 1307 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1301 1308 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1302 1309 c
1303 1310
1304 1311 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1305 1312 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1306 1313 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1307 1314 @@ -0,0 +1,1 @@
1308 1315 +c
1309 1316
1310 1317 --===*=-- (glob)
1311 1318
1312 1319 test attach for multiple patches:
1313 1320 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
1314 1321 > -r 0:1 -r 4 | $FILTERBOUNDARY
1315 1322 this patch series consists of 3 patches.
1316 1323
1317 1324
1318 1325 Write the introductory message for the patch series.
1319 1326
1320 1327
1321 1328 displaying [PATCH 0 of 3] test ...
1322 1329 MIME-Version: 1.0
1323 1330 Content-Type: text/plain; charset="us-ascii"
1324 1331 Content-Transfer-Encoding: 7bit
1325 1332 Subject: [PATCH 0 of 3] test
1326 1333 Message-Id: <patchbomb.60@*> (glob)
1327 1334 User-Agent: Mercurial-patchbomb/* (glob)
1328 1335 Date: Thu, 01 Jan 1970 00:01:00 +0000
1329 1336 From: quux
1330 1337 To: foo
1331 1338 Cc: bar
1332 1339
1333 1340
1334 1341 displaying [PATCH 1 of 3] a ...
1335 1342 Content-Type: multipart/mixed; boundary="===*==" (glob)
1336 1343 MIME-Version: 1.0
1337 1344 Subject: [PATCH 1 of 3] a
1338 1345 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1339 1346 X-Mercurial-Series-Index: 1
1340 1347 X-Mercurial-Series-Total: 3
1341 1348 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1342 1349 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1343 1350 In-Reply-To: <patchbomb.60@*> (glob)
1344 1351 References: <patchbomb.60@*> (glob)
1345 1352 User-Agent: Mercurial-patchbomb/* (glob)
1346 1353 Date: Thu, 01 Jan 1970 00:01:01 +0000
1347 1354 From: quux
1348 1355 To: foo
1349 1356 Cc: bar
1350 1357
1351 1358 --===*= (glob)
1352 1359 MIME-Version: 1.0
1353 1360 Content-Type: text/plain; charset="us-ascii"
1354 1361 Content-Transfer-Encoding: 7bit
1355 1362
1356 1363 Patch subject is complete summary.
1357 1364
1358 1365
1359 1366
1360 1367 --===*= (glob)
1361 1368 MIME-Version: 1.0
1362 1369 Content-Type: text/x-patch; charset="us-ascii"
1363 1370 Content-Transfer-Encoding: 7bit
1364 1371 Content-Disposition: attachment; filename=t2-1.patch
1365 1372
1366 1373 # HG changeset patch
1367 1374 # User test
1368 1375 # Date 1 0
1369 1376 # Thu Jan 01 00:00:01 1970 +0000
1370 1377 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1371 1378 # Parent 0000000000000000000000000000000000000000
1372 1379 a
1373 1380
1374 1381 diff -r 000000000000 -r 8580ff50825a a
1375 1382 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1376 1383 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1377 1384 @@ -0,0 +1,1 @@
1378 1385 +a
1379 1386
1380 1387 --===*=-- (glob)
1381 1388 displaying [PATCH 2 of 3] b ...
1382 1389 Content-Type: multipart/mixed; boundary="===*==" (glob)
1383 1390 MIME-Version: 1.0
1384 1391 Subject: [PATCH 2 of 3] b
1385 1392 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1386 1393 X-Mercurial-Series-Index: 2
1387 1394 X-Mercurial-Series-Total: 3
1388 1395 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1389 1396 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1390 1397 In-Reply-To: <patchbomb.60@*> (glob)
1391 1398 References: <patchbomb.60@*> (glob)
1392 1399 User-Agent: Mercurial-patchbomb/* (glob)
1393 1400 Date: Thu, 01 Jan 1970 00:01:02 +0000
1394 1401 From: quux
1395 1402 To: foo
1396 1403 Cc: bar
1397 1404
1398 1405 --===*= (glob)
1399 1406 MIME-Version: 1.0
1400 1407 Content-Type: text/plain; charset="us-ascii"
1401 1408 Content-Transfer-Encoding: 7bit
1402 1409
1403 1410 Patch subject is complete summary.
1404 1411
1405 1412
1406 1413
1407 1414 --===*= (glob)
1408 1415 MIME-Version: 1.0
1409 1416 Content-Type: text/x-patch; charset="us-ascii"
1410 1417 Content-Transfer-Encoding: 7bit
1411 1418 Content-Disposition: attachment; filename=t2-2.patch
1412 1419
1413 1420 # HG changeset patch
1414 1421 # User test
1415 1422 # Date 2 0
1416 1423 # Thu Jan 01 00:00:02 1970 +0000
1417 1424 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1418 1425 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1419 1426 b
1420 1427
1421 1428 diff -r 8580ff50825a -r 97d72e5f12c7 b
1422 1429 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1423 1430 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1424 1431 @@ -0,0 +1,1 @@
1425 1432 +b
1426 1433
1427 1434 --===*=-- (glob)
1428 1435 displaying [PATCH 3 of 3] long line ...
1429 1436 Content-Type: multipart/mixed; boundary="===*==" (glob)
1430 1437 MIME-Version: 1.0
1431 1438 Subject: [PATCH 3 of 3] long line
1432 1439 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1433 1440 X-Mercurial-Series-Index: 3
1434 1441 X-Mercurial-Series-Total: 3
1435 1442 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
1436 1443 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1437 1444 In-Reply-To: <patchbomb.60@*> (glob)
1438 1445 References: <patchbomb.60@*> (glob)
1439 1446 User-Agent: Mercurial-patchbomb/* (glob)
1440 1447 Date: Thu, 01 Jan 1970 00:01:03 +0000
1441 1448 From: quux
1442 1449 To: foo
1443 1450 Cc: bar
1444 1451
1445 1452 --===*= (glob)
1446 1453 MIME-Version: 1.0
1447 1454 Content-Type: text/plain; charset="us-ascii"
1448 1455 Content-Transfer-Encoding: 7bit
1449 1456
1450 1457 Patch subject is complete summary.
1451 1458
1452 1459
1453 1460
1454 1461 --===*= (glob)
1455 1462 MIME-Version: 1.0
1456 1463 Content-Type: text/x-patch; charset="us-ascii"
1457 1464 Content-Transfer-Encoding: quoted-printable
1458 1465 Content-Disposition: attachment; filename=t2-3.patch
1459 1466
1460 1467 # HG changeset patch
1461 1468 # User test
1462 1469 # Date 4 0
1463 1470 # Thu Jan 01 00:00:04 1970 +0000
1464 1471 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1465 1472 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1466 1473 long line
1467 1474
1468 1475 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1469 1476 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1470 1477 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1471 1478 @@ -0,0 +1,4 @@
1472 1479 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1473 1480 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1474 1481 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1475 1482 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1476 1483 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1477 1484 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1478 1485 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1479 1486 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1480 1487 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1481 1488 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1482 1489 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1483 1490 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1484 1491 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1485 1492 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1486 1493 +foo
1487 1494 +
1488 1495 +bar
1489 1496
1490 1497 --===*=-- (glob)
1491 1498
1492 1499 test intro for single patch:
1493 1500 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1494 1501 > -r 2
1495 1502 this patch series consists of 1 patches.
1496 1503
1497 1504
1498 1505 Write the introductory message for the patch series.
1499 1506
1500 1507
1501 1508 displaying [PATCH 0 of 1] test ...
1502 1509 MIME-Version: 1.0
1503 1510 Content-Type: text/plain; charset="us-ascii"
1504 1511 Content-Transfer-Encoding: 7bit
1505 1512 Subject: [PATCH 0 of 1] test
1506 1513 Message-Id: <patchbomb.60@*> (glob)
1507 1514 User-Agent: Mercurial-patchbomb/* (glob)
1508 1515 Date: Thu, 01 Jan 1970 00:01:00 +0000
1509 1516 From: quux
1510 1517 To: foo
1511 1518 Cc: bar
1512 1519
1513 1520
1514 1521 displaying [PATCH 1 of 1] c ...
1515 1522 MIME-Version: 1.0
1516 1523 Content-Type: text/plain; charset="us-ascii"
1517 1524 Content-Transfer-Encoding: 7bit
1518 1525 Subject: [PATCH 1 of 1] c
1519 1526 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1520 1527 X-Mercurial-Series-Index: 1
1521 1528 X-Mercurial-Series-Total: 1
1522 1529 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1523 1530 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1524 1531 In-Reply-To: <patchbomb.60@*> (glob)
1525 1532 References: <patchbomb.60@*> (glob)
1526 1533 User-Agent: Mercurial-patchbomb/* (glob)
1527 1534 Date: Thu, 01 Jan 1970 00:01:01 +0000
1528 1535 From: quux
1529 1536 To: foo
1530 1537 Cc: bar
1531 1538
1532 1539 # HG changeset patch
1533 1540 # User test
1534 1541 # Date 3 0
1535 1542 # Thu Jan 01 00:00:03 1970 +0000
1536 1543 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1537 1544 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1538 1545 c
1539 1546
1540 1547 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1541 1548 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1542 1549 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1543 1550 @@ -0,0 +1,1 @@
1544 1551 +c
1545 1552
1546 1553
1547 1554 test --desc without --intro for a single patch:
1548 1555 $ echo foo > intro.text
1549 1556 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1550 1557 > -s test -r 2
1551 1558 this patch series consists of 1 patches.
1552 1559
1553 1560
1554 1561 displaying [PATCH 0 of 1] test ...
1555 1562 MIME-Version: 1.0
1556 1563 Content-Type: text/plain; charset="us-ascii"
1557 1564 Content-Transfer-Encoding: 7bit
1558 1565 Subject: [PATCH 0 of 1] test
1559 1566 Message-Id: <patchbomb.60@*> (glob)
1560 1567 User-Agent: Mercurial-patchbomb/* (glob)
1561 1568 Date: Thu, 01 Jan 1970 00:01:00 +0000
1562 1569 From: quux
1563 1570 To: foo
1564 1571 Cc: bar
1565 1572
1566 1573 foo
1567 1574
1568 1575 displaying [PATCH 1 of 1] c ...
1569 1576 MIME-Version: 1.0
1570 1577 Content-Type: text/plain; charset="us-ascii"
1571 1578 Content-Transfer-Encoding: 7bit
1572 1579 Subject: [PATCH 1 of 1] c
1573 1580 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1574 1581 X-Mercurial-Series-Index: 1
1575 1582 X-Mercurial-Series-Total: 1
1576 1583 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1577 1584 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1578 1585 In-Reply-To: <patchbomb.60@*> (glob)
1579 1586 References: <patchbomb.60@*> (glob)
1580 1587 User-Agent: Mercurial-patchbomb/* (glob)
1581 1588 Date: Thu, 01 Jan 1970 00:01:01 +0000
1582 1589 From: quux
1583 1590 To: foo
1584 1591 Cc: bar
1585 1592
1586 1593 # HG changeset patch
1587 1594 # User test
1588 1595 # Date 3 0
1589 1596 # Thu Jan 01 00:00:03 1970 +0000
1590 1597 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1591 1598 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1592 1599 c
1593 1600
1594 1601 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1595 1602 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1596 1603 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1597 1604 @@ -0,0 +1,1 @@
1598 1605 +c
1599 1606
1600 1607
1601 1608 test intro for multiple patches:
1602 1609 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1603 1610 > -r 0:1
1604 1611 this patch series consists of 2 patches.
1605 1612
1606 1613
1607 1614 Write the introductory message for the patch series.
1608 1615
1609 1616
1610 1617 displaying [PATCH 0 of 2] test ...
1611 1618 MIME-Version: 1.0
1612 1619 Content-Type: text/plain; charset="us-ascii"
1613 1620 Content-Transfer-Encoding: 7bit
1614 1621 Subject: [PATCH 0 of 2] test
1615 1622 Message-Id: <patchbomb.60@*> (glob)
1616 1623 User-Agent: Mercurial-patchbomb/* (glob)
1617 1624 Date: Thu, 01 Jan 1970 00:01:00 +0000
1618 1625 From: quux
1619 1626 To: foo
1620 1627 Cc: bar
1621 1628
1622 1629
1623 1630 displaying [PATCH 1 of 2] a ...
1624 1631 MIME-Version: 1.0
1625 1632 Content-Type: text/plain; charset="us-ascii"
1626 1633 Content-Transfer-Encoding: 7bit
1627 1634 Subject: [PATCH 1 of 2] a
1628 1635 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1629 1636 X-Mercurial-Series-Index: 1
1630 1637 X-Mercurial-Series-Total: 2
1631 1638 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1632 1639 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1633 1640 In-Reply-To: <patchbomb.60@*> (glob)
1634 1641 References: <patchbomb.60@*> (glob)
1635 1642 User-Agent: Mercurial-patchbomb/* (glob)
1636 1643 Date: Thu, 01 Jan 1970 00:01:01 +0000
1637 1644 From: quux
1638 1645 To: foo
1639 1646 Cc: bar
1640 1647
1641 1648 # HG changeset patch
1642 1649 # User test
1643 1650 # Date 1 0
1644 1651 # Thu Jan 01 00:00:01 1970 +0000
1645 1652 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1646 1653 # Parent 0000000000000000000000000000000000000000
1647 1654 a
1648 1655
1649 1656 diff -r 000000000000 -r 8580ff50825a a
1650 1657 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1651 1658 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1652 1659 @@ -0,0 +1,1 @@
1653 1660 +a
1654 1661
1655 1662 displaying [PATCH 2 of 2] b ...
1656 1663 MIME-Version: 1.0
1657 1664 Content-Type: text/plain; charset="us-ascii"
1658 1665 Content-Transfer-Encoding: 7bit
1659 1666 Subject: [PATCH 2 of 2] b
1660 1667 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1661 1668 X-Mercurial-Series-Index: 2
1662 1669 X-Mercurial-Series-Total: 2
1663 1670 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1664 1671 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1665 1672 In-Reply-To: <patchbomb.60@*> (glob)
1666 1673 References: <patchbomb.60@*> (glob)
1667 1674 User-Agent: Mercurial-patchbomb/* (glob)
1668 1675 Date: Thu, 01 Jan 1970 00:01:02 +0000
1669 1676 From: quux
1670 1677 To: foo
1671 1678 Cc: bar
1672 1679
1673 1680 # HG changeset patch
1674 1681 # User test
1675 1682 # Date 2 0
1676 1683 # Thu Jan 01 00:00:02 1970 +0000
1677 1684 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1678 1685 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1679 1686 b
1680 1687
1681 1688 diff -r 8580ff50825a -r 97d72e5f12c7 b
1682 1689 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1683 1690 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1684 1691 @@ -0,0 +1,1 @@
1685 1692 +b
1686 1693
1687 1694
1688 1695 test reply-to via config:
1689 1696 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1690 1697 > --config patchbomb.reply-to='baz@example.com'
1691 1698 this patch series consists of 1 patches.
1692 1699
1693 1700
1694 1701 displaying [PATCH] test ...
1695 1702 MIME-Version: 1.0
1696 1703 Content-Type: text/plain; charset="us-ascii"
1697 1704 Content-Transfer-Encoding: 7bit
1698 1705 Subject: [PATCH] test
1699 1706 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1700 1707 X-Mercurial-Series-Index: 1
1701 1708 X-Mercurial-Series-Total: 1
1702 1709 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1703 1710 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1704 1711 User-Agent: Mercurial-patchbomb/* (glob)
1705 1712 Date: Thu, 01 Jan 1970 00:01:00 +0000
1706 1713 From: quux
1707 1714 To: foo
1708 1715 Cc: bar
1709 1716 Reply-To: baz@example.com
1710 1717
1711 1718 # HG changeset patch
1712 1719 # User test
1713 1720 # Date 3 0
1714 1721 # Thu Jan 01 00:00:03 1970 +0000
1715 1722 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1716 1723 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1717 1724 c
1718 1725
1719 1726 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1720 1727 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1721 1728 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1722 1729 @@ -0,0 +1,1 @@
1723 1730 +c
1724 1731
1725 1732
1726 1733 test reply-to via command line:
1727 1734 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1728 1735 > --reply-to baz --reply-to fred
1729 1736 this patch series consists of 1 patches.
1730 1737
1731 1738
1732 1739 displaying [PATCH] test ...
1733 1740 MIME-Version: 1.0
1734 1741 Content-Type: text/plain; charset="us-ascii"
1735 1742 Content-Transfer-Encoding: 7bit
1736 1743 Subject: [PATCH] test
1737 1744 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1738 1745 X-Mercurial-Series-Index: 1
1739 1746 X-Mercurial-Series-Total: 1
1740 1747 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1741 1748 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1742 1749 User-Agent: Mercurial-patchbomb/* (glob)
1743 1750 Date: Thu, 01 Jan 1970 00:01:00 +0000
1744 1751 From: quux
1745 1752 To: foo
1746 1753 Cc: bar
1747 1754 Reply-To: baz, fred
1748 1755
1749 1756 # HG changeset patch
1750 1757 # User test
1751 1758 # Date 3 0
1752 1759 # Thu Jan 01 00:00:03 1970 +0000
1753 1760 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1754 1761 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1755 1762 c
1756 1763
1757 1764 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1758 1765 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1759 1766 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1760 1767 @@ -0,0 +1,1 @@
1761 1768 +c
1762 1769
1763 1770
1764 1771 tagging csets:
1765 1772 $ hg tag -r0 zero zero.foo
1766 1773 $ hg tag -r1 one one.patch
1767 1774 $ hg tag -r2 two two.diff
1768 1775
1769 1776 test inline for single named patch:
1770 1777 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1771 1778 > -r 2 | $FILTERBOUNDARY
1772 1779 this patch series consists of 1 patches.
1773 1780
1774 1781
1775 1782 displaying [PATCH] test ...
1776 1783 Content-Type: multipart/mixed; boundary="===*==" (glob)
1777 1784 MIME-Version: 1.0
1778 1785 Subject: [PATCH] test
1779 1786 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1780 1787 X-Mercurial-Series-Index: 1
1781 1788 X-Mercurial-Series-Total: 1
1782 1789 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1783 1790 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1784 1791 User-Agent: Mercurial-patchbomb/* (glob)
1785 1792 Date: Thu, 01 Jan 1970 00:01:00 +0000
1786 1793 From: quux
1787 1794 To: foo
1788 1795 Cc: bar
1789 1796
1790 1797 --===*= (glob)
1791 1798 MIME-Version: 1.0
1792 1799 Content-Type: text/x-patch; charset="us-ascii"
1793 1800 Content-Transfer-Encoding: 7bit
1794 1801 Content-Disposition: inline; filename=two.diff
1795 1802
1796 1803 # HG changeset patch
1797 1804 # User test
1798 1805 # Date 3 0
1799 1806 # Thu Jan 01 00:00:03 1970 +0000
1800 1807 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1801 1808 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1802 1809 c
1803 1810
1804 1811 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1805 1812 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1806 1813 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1807 1814 @@ -0,0 +1,1 @@
1808 1815 +c
1809 1816
1810 1817 --===*=-- (glob)
1811 1818
1812 1819 test inline for multiple named/unnamed patches:
1813 1820 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1814 1821 > -r 0:1 | $FILTERBOUNDARY
1815 1822 this patch series consists of 2 patches.
1816 1823
1817 1824
1818 1825 Write the introductory message for the patch series.
1819 1826
1820 1827
1821 1828 displaying [PATCH 0 of 2] test ...
1822 1829 MIME-Version: 1.0
1823 1830 Content-Type: text/plain; charset="us-ascii"
1824 1831 Content-Transfer-Encoding: 7bit
1825 1832 Subject: [PATCH 0 of 2] test
1826 1833 Message-Id: <patchbomb.60@*> (glob)
1827 1834 User-Agent: Mercurial-patchbomb/* (glob)
1828 1835 Date: Thu, 01 Jan 1970 00:01:00 +0000
1829 1836 From: quux
1830 1837 To: foo
1831 1838 Cc: bar
1832 1839
1833 1840
1834 1841 displaying [PATCH 1 of 2] a ...
1835 1842 Content-Type: multipart/mixed; boundary="===*==" (glob)
1836 1843 MIME-Version: 1.0
1837 1844 Subject: [PATCH 1 of 2] a
1838 1845 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1839 1846 X-Mercurial-Series-Index: 1
1840 1847 X-Mercurial-Series-Total: 2
1841 1848 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1842 1849 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1843 1850 In-Reply-To: <patchbomb.60@*> (glob)
1844 1851 References: <patchbomb.60@*> (glob)
1845 1852 User-Agent: Mercurial-patchbomb/* (glob)
1846 1853 Date: Thu, 01 Jan 1970 00:01:01 +0000
1847 1854 From: quux
1848 1855 To: foo
1849 1856 Cc: bar
1850 1857
1851 1858 --===*= (glob)
1852 1859 MIME-Version: 1.0
1853 1860 Content-Type: text/x-patch; charset="us-ascii"
1854 1861 Content-Transfer-Encoding: 7bit
1855 1862 Content-Disposition: inline; filename=t2-1.patch
1856 1863
1857 1864 # HG changeset patch
1858 1865 # User test
1859 1866 # Date 1 0
1860 1867 # Thu Jan 01 00:00:01 1970 +0000
1861 1868 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1862 1869 # Parent 0000000000000000000000000000000000000000
1863 1870 a
1864 1871
1865 1872 diff -r 000000000000 -r 8580ff50825a a
1866 1873 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1867 1874 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1868 1875 @@ -0,0 +1,1 @@
1869 1876 +a
1870 1877
1871 1878 --===*=-- (glob)
1872 1879 displaying [PATCH 2 of 2] b ...
1873 1880 Content-Type: multipart/mixed; boundary="===*==" (glob)
1874 1881 MIME-Version: 1.0
1875 1882 Subject: [PATCH 2 of 2] b
1876 1883 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1877 1884 X-Mercurial-Series-Index: 2
1878 1885 X-Mercurial-Series-Total: 2
1879 1886 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1880 1887 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1881 1888 In-Reply-To: <patchbomb.60@*> (glob)
1882 1889 References: <patchbomb.60@*> (glob)
1883 1890 User-Agent: Mercurial-patchbomb/* (glob)
1884 1891 Date: Thu, 01 Jan 1970 00:01:02 +0000
1885 1892 From: quux
1886 1893 To: foo
1887 1894 Cc: bar
1888 1895
1889 1896 --===*= (glob)
1890 1897 MIME-Version: 1.0
1891 1898 Content-Type: text/x-patch; charset="us-ascii"
1892 1899 Content-Transfer-Encoding: 7bit
1893 1900 Content-Disposition: inline; filename=one.patch
1894 1901
1895 1902 # HG changeset patch
1896 1903 # User test
1897 1904 # Date 2 0
1898 1905 # Thu Jan 01 00:00:02 1970 +0000
1899 1906 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1900 1907 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1901 1908 b
1902 1909
1903 1910 diff -r 8580ff50825a -r 97d72e5f12c7 b
1904 1911 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1905 1912 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1906 1913 @@ -0,0 +1,1 @@
1907 1914 +b
1908 1915
1909 1916 --===*=-- (glob)
1910 1917
1911 1918
1912 1919 test inreplyto:
1913 1920 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1914 1921 > -r tip
1915 1922 this patch series consists of 1 patches.
1916 1923
1917 1924
1918 1925 displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1919 1926 MIME-Version: 1.0
1920 1927 Content-Type: text/plain; charset="us-ascii"
1921 1928 Content-Transfer-Encoding: 7bit
1922 1929 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1923 1930 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1924 1931 X-Mercurial-Series-Index: 1
1925 1932 X-Mercurial-Series-Total: 1
1926 1933 Message-Id: <7aead2484924c445ad8c.60@*> (glob)
1927 1934 X-Mercurial-Series-Id: <7aead2484924c445ad8c.60@*> (glob)
1928 1935 In-Reply-To: <baz>
1929 1936 References: <baz>
1930 1937 User-Agent: Mercurial-patchbomb/* (glob)
1931 1938 Date: Thu, 01 Jan 1970 00:01:00 +0000
1932 1939 From: quux
1933 1940 To: foo
1934 1941 Cc: bar
1935 1942
1936 1943 # HG changeset patch
1937 1944 # User test
1938 1945 # Date 0 0
1939 1946 # Thu Jan 01 00:00:00 1970 +0000
1940 1947 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1941 1948 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1942 1949 Added tag two, two.diff for changeset ff2c9fa2018b
1943 1950
1944 1951 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1945 1952 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1946 1953 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1947 1954 @@ -2,3 +2,5 @@
1948 1955 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1949 1956 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1950 1957 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1951 1958 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1952 1959 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1953 1960
1954 1961 no intro message in non-interactive mode
1955 1962 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1956 1963 > -r 0:1
1957 1964 this patch series consists of 2 patches.
1958 1965
1959 1966 (optional) Subject: [PATCH 0 of 2]
1960 1967
1961 1968 displaying [PATCH 1 of 2] a ...
1962 1969 MIME-Version: 1.0
1963 1970 Content-Type: text/plain; charset="us-ascii"
1964 1971 Content-Transfer-Encoding: 7bit
1965 1972 Subject: [PATCH 1 of 2] a
1966 1973 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1967 1974 X-Mercurial-Series-Index: 1
1968 1975 X-Mercurial-Series-Total: 2
1969 1976 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
1970 1977 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
1971 1978 In-Reply-To: <baz>
1972 1979 References: <baz>
1973 1980 User-Agent: Mercurial-patchbomb/* (glob)
1974 1981 Date: Thu, 01 Jan 1970 00:01:00 +0000
1975 1982 From: quux
1976 1983 To: foo
1977 1984 Cc: bar
1978 1985
1979 1986 # HG changeset patch
1980 1987 # User test
1981 1988 # Date 1 0
1982 1989 # Thu Jan 01 00:00:01 1970 +0000
1983 1990 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1984 1991 # Parent 0000000000000000000000000000000000000000
1985 1992 a
1986 1993
1987 1994 diff -r 000000000000 -r 8580ff50825a a
1988 1995 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1989 1996 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1990 1997 @@ -0,0 +1,1 @@
1991 1998 +a
1992 1999
1993 2000 displaying [PATCH 2 of 2] b ...
1994 2001 MIME-Version: 1.0
1995 2002 Content-Type: text/plain; charset="us-ascii"
1996 2003 Content-Transfer-Encoding: 7bit
1997 2004 Subject: [PATCH 2 of 2] b
1998 2005 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1999 2006 X-Mercurial-Series-Index: 2
2000 2007 X-Mercurial-Series-Total: 2
2001 2008 Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
2002 2009 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
2003 2010 In-Reply-To: <baz>
2004 2011 References: <baz>
2005 2012 User-Agent: Mercurial-patchbomb/* (glob)
2006 2013 Date: Thu, 01 Jan 1970 00:01:01 +0000
2007 2014 From: quux
2008 2015 To: foo
2009 2016 Cc: bar
2010 2017
2011 2018 # HG changeset patch
2012 2019 # User test
2013 2020 # Date 2 0
2014 2021 # Thu Jan 01 00:00:02 1970 +0000
2015 2022 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2016 2023 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2017 2024 b
2018 2025
2019 2026 diff -r 8580ff50825a -r 97d72e5f12c7 b
2020 2027 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2021 2028 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2022 2029 @@ -0,0 +1,1 @@
2023 2030 +b
2024 2031
2025 2032
2026 2033
2027 2034
2028 2035 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
2029 2036 > -s test -r 0:1
2030 2037 this patch series consists of 2 patches.
2031 2038
2032 2039
2033 2040 Write the introductory message for the patch series.
2034 2041
2035 2042
2036 2043 displaying [PATCH 0 of 2] test ...
2037 2044 MIME-Version: 1.0
2038 2045 Content-Type: text/plain; charset="us-ascii"
2039 2046 Content-Transfer-Encoding: 7bit
2040 2047 Subject: [PATCH 0 of 2] test
2041 2048 Message-Id: <patchbomb.60@*> (glob)
2042 2049 In-Reply-To: <baz>
2043 2050 References: <baz>
2044 2051 User-Agent: Mercurial-patchbomb/* (glob)
2045 2052 Date: Thu, 01 Jan 1970 00:01:00 +0000
2046 2053 From: quux
2047 2054 To: foo
2048 2055 Cc: bar
2049 2056
2050 2057
2051 2058 displaying [PATCH 1 of 2] a ...
2052 2059 MIME-Version: 1.0
2053 2060 Content-Type: text/plain; charset="us-ascii"
2054 2061 Content-Transfer-Encoding: 7bit
2055 2062 Subject: [PATCH 1 of 2] a
2056 2063 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2057 2064 X-Mercurial-Series-Index: 1
2058 2065 X-Mercurial-Series-Total: 2
2059 2066 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
2060 2067 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2061 2068 In-Reply-To: <patchbomb.60@*> (glob)
2062 2069 References: <patchbomb.60@*> (glob)
2063 2070 User-Agent: Mercurial-patchbomb/* (glob)
2064 2071 Date: Thu, 01 Jan 1970 00:01:01 +0000
2065 2072 From: quux
2066 2073 To: foo
2067 2074 Cc: bar
2068 2075
2069 2076 # HG changeset patch
2070 2077 # User test
2071 2078 # Date 1 0
2072 2079 # Thu Jan 01 00:00:01 1970 +0000
2073 2080 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2074 2081 # Parent 0000000000000000000000000000000000000000
2075 2082 a
2076 2083
2077 2084 diff -r 000000000000 -r 8580ff50825a a
2078 2085 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2079 2086 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2080 2087 @@ -0,0 +1,1 @@
2081 2088 +a
2082 2089
2083 2090 displaying [PATCH 2 of 2] b ...
2084 2091 MIME-Version: 1.0
2085 2092 Content-Type: text/plain; charset="us-ascii"
2086 2093 Content-Transfer-Encoding: 7bit
2087 2094 Subject: [PATCH 2 of 2] b
2088 2095 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2089 2096 X-Mercurial-Series-Index: 2
2090 2097 X-Mercurial-Series-Total: 2
2091 2098 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
2092 2099 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2093 2100 In-Reply-To: <patchbomb.60@*> (glob)
2094 2101 References: <patchbomb.60@*> (glob)
2095 2102 User-Agent: Mercurial-patchbomb/* (glob)
2096 2103 Date: Thu, 01 Jan 1970 00:01:02 +0000
2097 2104 From: quux
2098 2105 To: foo
2099 2106 Cc: bar
2100 2107
2101 2108 # HG changeset patch
2102 2109 # User test
2103 2110 # Date 2 0
2104 2111 # Thu Jan 01 00:00:02 1970 +0000
2105 2112 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2106 2113 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2107 2114 b
2108 2115
2109 2116 diff -r 8580ff50825a -r 97d72e5f12c7 b
2110 2117 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2111 2118 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2112 2119 @@ -0,0 +1,1 @@
2113 2120 +b
2114 2121
2115 2122
2116 2123 test single flag for single patch (and no warning when not mailing dirty rev):
2117 2124 $ hg up -qr1
2118 2125 $ echo dirt > a
2119 2126 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2120 2127 > -r 2 | $FILTERBOUNDARY
2121 2128 this patch series consists of 1 patches.
2122 2129
2123 2130
2124 2131 displaying [PATCH fooFlag] test ...
2125 2132 MIME-Version: 1.0
2126 2133 Content-Type: text/plain; charset="us-ascii"
2127 2134 Content-Transfer-Encoding: 7bit
2128 2135 Subject: [PATCH fooFlag] test
2129 2136 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2130 2137 X-Mercurial-Series-Index: 1
2131 2138 X-Mercurial-Series-Total: 1
2132 2139 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
2133 2140 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
2134 2141 User-Agent: Mercurial-patchbomb/* (glob)
2135 2142 Date: Thu, 01 Jan 1970 00:01:00 +0000
2136 2143 From: quux
2137 2144 To: foo
2138 2145 Cc: bar
2139 2146
2140 2147 # HG changeset patch
2141 2148 # User test
2142 2149 # Date 3 0
2143 2150 # Thu Jan 01 00:00:03 1970 +0000
2144 2151 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2145 2152 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2146 2153 c
2147 2154
2148 2155 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2149 2156 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2150 2157 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2151 2158 @@ -0,0 +1,1 @@
2152 2159 +c
2153 2160
2154 2161
2155 2162 test single flag for multiple patches (and warning when mailing dirty rev):
2156 2163 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2157 2164 > -r 0:1
2158 2165 warning: working directory has uncommitted changes
2159 2166 this patch series consists of 2 patches.
2160 2167
2161 2168
2162 2169 Write the introductory message for the patch series.
2163 2170
2164 2171
2165 2172 displaying [PATCH 0 of 2 fooFlag] test ...
2166 2173 MIME-Version: 1.0
2167 2174 Content-Type: text/plain; charset="us-ascii"
2168 2175 Content-Transfer-Encoding: 7bit
2169 2176 Subject: [PATCH 0 of 2 fooFlag] test
2170 2177 Message-Id: <patchbomb.60@*> (glob)
2171 2178 User-Agent: Mercurial-patchbomb/* (glob)
2172 2179 Date: Thu, 01 Jan 1970 00:01:00 +0000
2173 2180 From: quux
2174 2181 To: foo
2175 2182 Cc: bar
2176 2183
2177 2184
2178 2185 displaying [PATCH 1 of 2 fooFlag] a ...
2179 2186 MIME-Version: 1.0
2180 2187 Content-Type: text/plain; charset="us-ascii"
2181 2188 Content-Transfer-Encoding: 7bit
2182 2189 Subject: [PATCH 1 of 2 fooFlag] a
2183 2190 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2184 2191 X-Mercurial-Series-Index: 1
2185 2192 X-Mercurial-Series-Total: 2
2186 2193 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
2187 2194 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2188 2195 In-Reply-To: <patchbomb.60@*> (glob)
2189 2196 References: <patchbomb.60@*> (glob)
2190 2197 User-Agent: Mercurial-patchbomb/* (glob)
2191 2198 Date: Thu, 01 Jan 1970 00:01:01 +0000
2192 2199 From: quux
2193 2200 To: foo
2194 2201 Cc: bar
2195 2202
2196 2203 # HG changeset patch
2197 2204 # User test
2198 2205 # Date 1 0
2199 2206 # Thu Jan 01 00:00:01 1970 +0000
2200 2207 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2201 2208 # Parent 0000000000000000000000000000000000000000
2202 2209 a
2203 2210
2204 2211 diff -r 000000000000 -r 8580ff50825a a
2205 2212 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2206 2213 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2207 2214 @@ -0,0 +1,1 @@
2208 2215 +a
2209 2216
2210 2217 displaying [PATCH 2 of 2 fooFlag] b ...
2211 2218 MIME-Version: 1.0
2212 2219 Content-Type: text/plain; charset="us-ascii"
2213 2220 Content-Transfer-Encoding: 7bit
2214 2221 Subject: [PATCH 2 of 2 fooFlag] b
2215 2222 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2216 2223 X-Mercurial-Series-Index: 2
2217 2224 X-Mercurial-Series-Total: 2
2218 2225 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
2219 2226 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2220 2227 In-Reply-To: <patchbomb.60@*> (glob)
2221 2228 References: <patchbomb.60@*> (glob)
2222 2229 User-Agent: Mercurial-patchbomb/* (glob)
2223 2230 Date: Thu, 01 Jan 1970 00:01:02 +0000
2224 2231 From: quux
2225 2232 To: foo
2226 2233 Cc: bar
2227 2234
2228 2235 # HG changeset patch
2229 2236 # User test
2230 2237 # Date 2 0
2231 2238 # Thu Jan 01 00:00:02 1970 +0000
2232 2239 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2233 2240 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2234 2241 b
2235 2242
2236 2243 diff -r 8580ff50825a -r 97d72e5f12c7 b
2237 2244 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2238 2245 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2239 2246 @@ -0,0 +1,1 @@
2240 2247 +b
2241 2248
2242 2249 $ hg revert --no-b a
2243 2250 $ hg up -q
2244 2251
2245 2252 test multiple flags for single patch:
2246 2253 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2247 2254 > -c bar -s test -r 2
2248 2255 this patch series consists of 1 patches.
2249 2256
2250 2257
2251 2258 displaying [PATCH fooFlag barFlag] test ...
2252 2259 MIME-Version: 1.0
2253 2260 Content-Type: text/plain; charset="us-ascii"
2254 2261 Content-Transfer-Encoding: 7bit
2255 2262 Subject: [PATCH fooFlag barFlag] test
2256 2263 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2257 2264 X-Mercurial-Series-Index: 1
2258 2265 X-Mercurial-Series-Total: 1
2259 2266 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
2260 2267 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
2261 2268 User-Agent: Mercurial-patchbomb/* (glob)
2262 2269 Date: Thu, 01 Jan 1970 00:01:00 +0000
2263 2270 From: quux
2264 2271 To: foo
2265 2272 Cc: bar
2266 2273
2267 2274 # HG changeset patch
2268 2275 # User test
2269 2276 # Date 3 0
2270 2277 # Thu Jan 01 00:00:03 1970 +0000
2271 2278 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2272 2279 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2273 2280 c
2274 2281
2275 2282 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2276 2283 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2277 2284 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2278 2285 @@ -0,0 +1,1 @@
2279 2286 +c
2280 2287
2281 2288
2282 2289 test multiple flags for multiple patches:
2283 2290 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2284 2291 > -c bar -s test -r 0:1
2285 2292 this patch series consists of 2 patches.
2286 2293
2287 2294
2288 2295 Write the introductory message for the patch series.
2289 2296
2290 2297
2291 2298 displaying [PATCH 0 of 2 fooFlag barFlag] test ...
2292 2299 MIME-Version: 1.0
2293 2300 Content-Type: text/plain; charset="us-ascii"
2294 2301 Content-Transfer-Encoding: 7bit
2295 2302 Subject: [PATCH 0 of 2 fooFlag barFlag] test
2296 2303 Message-Id: <patchbomb.60@*> (glob)
2297 2304 User-Agent: Mercurial-patchbomb/* (glob)
2298 2305 Date: Thu, 01 Jan 1970 00:01:00 +0000
2299 2306 From: quux
2300 2307 To: foo
2301 2308 Cc: bar
2302 2309
2303 2310
2304 2311 displaying [PATCH 1 of 2 fooFlag barFlag] a ...
2305 2312 MIME-Version: 1.0
2306 2313 Content-Type: text/plain; charset="us-ascii"
2307 2314 Content-Transfer-Encoding: 7bit
2308 2315 Subject: [PATCH 1 of 2 fooFlag barFlag] a
2309 2316 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2310 2317 X-Mercurial-Series-Index: 1
2311 2318 X-Mercurial-Series-Total: 2
2312 2319 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
2313 2320 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2314 2321 In-Reply-To: <patchbomb.60@*> (glob)
2315 2322 References: <patchbomb.60@*> (glob)
2316 2323 User-Agent: Mercurial-patchbomb/* (glob)
2317 2324 Date: Thu, 01 Jan 1970 00:01:01 +0000
2318 2325 From: quux
2319 2326 To: foo
2320 2327 Cc: bar
2321 2328
2322 2329 # HG changeset patch
2323 2330 # User test
2324 2331 # Date 1 0
2325 2332 # Thu Jan 01 00:00:01 1970 +0000
2326 2333 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2327 2334 # Parent 0000000000000000000000000000000000000000
2328 2335 a
2329 2336
2330 2337 diff -r 000000000000 -r 8580ff50825a a
2331 2338 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2332 2339 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2333 2340 @@ -0,0 +1,1 @@
2334 2341 +a
2335 2342
2336 2343 displaying [PATCH 2 of 2 fooFlag barFlag] b ...
2337 2344 MIME-Version: 1.0
2338 2345 Content-Type: text/plain; charset="us-ascii"
2339 2346 Content-Transfer-Encoding: 7bit
2340 2347 Subject: [PATCH 2 of 2 fooFlag barFlag] b
2341 2348 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2342 2349 X-Mercurial-Series-Index: 2
2343 2350 X-Mercurial-Series-Total: 2
2344 2351 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
2345 2352 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2346 2353 In-Reply-To: <patchbomb.60@*> (glob)
2347 2354 References: <patchbomb.60@*> (glob)
2348 2355 User-Agent: Mercurial-patchbomb/* (glob)
2349 2356 Date: Thu, 01 Jan 1970 00:01:02 +0000
2350 2357 From: quux
2351 2358 To: foo
2352 2359 Cc: bar
2353 2360
2354 2361 # HG changeset patch
2355 2362 # User test
2356 2363 # Date 2 0
2357 2364 # Thu Jan 01 00:00:02 1970 +0000
2358 2365 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2359 2366 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2360 2367 b
2361 2368
2362 2369 diff -r 8580ff50825a -r 97d72e5f12c7 b
2363 2370 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2364 2371 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2365 2372 @@ -0,0 +1,1 @@
2366 2373 +b
2367 2374
2368 2375
2369 2376 test multi-address parsing:
2370 2377 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
2371 2378 > -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
2372 2379 > --config email.bcc='"Quux, A." <quux>'
2373 2380 this patch series consists of 1 patches.
2374 2381
2375 2382
2376 2383 sending [PATCH] test ...
2377 2384 $ cat < tmp.mbox
2378 2385 From quux ... ... .. ..:..:.. .... (re)
2379 2386 MIME-Version: 1.0
2380 2387 Content-Type: text/plain; charset="us-ascii"
2381 2388 Content-Transfer-Encoding: 7bit
2382 2389 Subject: [PATCH] test
2383 2390 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2384 2391 X-Mercurial-Series-Index: 1
2385 2392 X-Mercurial-Series-Total: 1
2386 2393 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2387 2394 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2388 2395 User-Agent: Mercurial-patchbomb/* (glob)
2389 2396 Date: Tue, 01 Jan 1980 00:01:00 +0000
2390 2397 From: quux
2391 2398 To: spam <spam>, eggs, toast
2392 2399 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
2393 2400 Bcc: "Quux, A." <quux>
2394 2401
2395 2402 # HG changeset patch
2396 2403 # User test
2397 2404 # Date 1 0
2398 2405 # Thu Jan 01 00:00:01 1970 +0000
2399 2406 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2400 2407 # Parent 0000000000000000000000000000000000000000
2401 2408 a
2402 2409
2403 2410 diff -r 000000000000 -r 8580ff50825a a
2404 2411 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2405 2412 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2406 2413 @@ -0,0 +1,1 @@
2407 2414 +a
2408 2415
2409 2416
2410 2417
2411 2418 test flag template:
2412 2419 $ echo foo > intro.text
2413 2420 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0:1 \
2414 2421 > --desc intro.text --subject test \
2415 2422 > --config patchbomb.flagtemplate='R{rev}'
2416 2423 this patch series consists of 2 patches.
2417 2424
2418 2425 Cc:
2419 2426
2420 2427 displaying [PATCH 0 of 2 R1] test ...
2421 2428 MIME-Version: 1.0
2422 2429 Content-Type: text/plain; charset="us-ascii"
2423 2430 Content-Transfer-Encoding: 7bit
2424 2431 Subject: [PATCH 0 of 2 R1] test
2425 2432 Message-Id: <patchbomb.60@*> (glob)
2426 2433 User-Agent: Mercurial-patchbomb/* (glob)
2427 2434 Date: Thu, 01 Jan 1970 00:01:00 +0000
2428 2435 From: quux
2429 2436 To: foo
2430 2437
2431 2438 foo
2432 2439
2433 2440 displaying [PATCH 1 of 2 R0] a ...
2434 2441 MIME-Version: 1.0
2435 2442 Content-Type: text/plain; charset="us-ascii"
2436 2443 Content-Transfer-Encoding: 7bit
2437 2444 Subject: [PATCH 1 of 2 R0] a
2438 2445 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2439 2446 X-Mercurial-Series-Index: 1
2440 2447 X-Mercurial-Series-Total: 2
2441 2448 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
2442 2449 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2443 2450 In-Reply-To: <patchbomb.60@*> (glob)
2444 2451 References: <patchbomb.60@*> (glob)
2445 2452 User-Agent: Mercurial-patchbomb/* (glob)
2446 2453 Date: Thu, 01 Jan 1970 00:01:01 +0000
2447 2454 From: quux
2448 2455 To: foo
2449 2456
2450 2457 # HG changeset patch
2451 2458 # User test
2452 2459 # Date 1 0
2453 2460 # Thu Jan 01 00:00:01 1970 +0000
2454 2461 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2455 2462 # Parent 0000000000000000000000000000000000000000
2456 2463 a
2457 2464
2458 2465 diff -r 000000000000 -r 8580ff50825a a
2459 2466 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2460 2467 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2461 2468 @@ -0,0 +1,1 @@
2462 2469 +a
2463 2470
2464 2471 displaying [PATCH 2 of 2 R1] b ...
2465 2472 MIME-Version: 1.0
2466 2473 Content-Type: text/plain; charset="us-ascii"
2467 2474 Content-Transfer-Encoding: 7bit
2468 2475 Subject: [PATCH 2 of 2 R1] b
2469 2476 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2470 2477 X-Mercurial-Series-Index: 2
2471 2478 X-Mercurial-Series-Total: 2
2472 2479 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
2473 2480 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2474 2481 In-Reply-To: <patchbomb.60@*> (glob)
2475 2482 References: <patchbomb.60@*> (glob)
2476 2483 User-Agent: Mercurial-patchbomb/* (glob)
2477 2484 Date: Thu, 01 Jan 1970 00:01:02 +0000
2478 2485 From: quux
2479 2486 To: foo
2480 2487
2481 2488 # HG changeset patch
2482 2489 # User test
2483 2490 # Date 2 0
2484 2491 # Thu Jan 01 00:00:02 1970 +0000
2485 2492 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2486 2493 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2487 2494 b
2488 2495
2489 2496 diff -r 8580ff50825a -r 97d72e5f12c7 b
2490 2497 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2491 2498 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2492 2499 @@ -0,0 +1,1 @@
2493 2500 +b
2494 2501
2495 2502
2496 2503 test flag template plus --flag:
2497 2504 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0 --flag 'V2' \
2498 2505 > --config patchbomb.flagtemplate='{branch} {flags}'
2499 2506 this patch series consists of 1 patches.
2500 2507
2501 2508 Cc:
2502 2509
2503 2510 displaying [PATCH default V2] a ...
2504 2511 MIME-Version: 1.0
2505 2512 Content-Type: text/plain; charset="us-ascii"
2506 2513 Content-Transfer-Encoding: 7bit
2507 2514 Subject: [PATCH default V2] a
2508 2515 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2509 2516 X-Mercurial-Series-Index: 1
2510 2517 X-Mercurial-Series-Total: 1
2511 2518 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
2512 2519 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
2513 2520 User-Agent: Mercurial-patchbomb/* (glob)
2514 2521 Date: Thu, 01 Jan 1970 00:01:00 +0000
2515 2522 From: quux
2516 2523 To: foo
2517 2524
2518 2525 # HG changeset patch
2519 2526 # User test
2520 2527 # Date 1 0
2521 2528 # Thu Jan 01 00:00:01 1970 +0000
2522 2529 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2523 2530 # Parent 0000000000000000000000000000000000000000
2524 2531 a
2525 2532
2526 2533 diff -r 000000000000 -r 8580ff50825a a
2527 2534 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2528 2535 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2529 2536 @@ -0,0 +1,1 @@
2530 2537 +a
2531 2538
2532 2539
2533 2540 test multi-byte domain parsing:
2534 $ UUML=`$PYTHON -c 'import sys; sys.stdout.write("\374")'`
2541 >>> with open('toaddress.txt', 'wb') as f:
2542 ... f.write(b'bar@\xfcnicode.com') and None
2535 2543 $ HGENCODING=iso-8859-1
2536 2544 $ export HGENCODING
2537 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
2545 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "`cat toaddress.txt`" -s test -r 0
2538 2546 this patch series consists of 1 patches.
2539 2547
2540 2548 Cc:
2541 2549
2542 2550 sending [PATCH] test ...
2543 2551
2544 2552 $ cat tmp.mbox
2545 2553 From quux ... ... .. ..:..:.. .... (re)
2546 2554 MIME-Version: 1.0
2547 2555 Content-Type: text/plain; charset="us-ascii"
2548 2556 Content-Transfer-Encoding: 7bit
2549 2557 Subject: [PATCH] test
2550 2558 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2551 2559 X-Mercurial-Series-Index: 1
2552 2560 X-Mercurial-Series-Total: 1
2553 2561 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2554 2562 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2555 2563 User-Agent: Mercurial-patchbomb/* (glob)
2556 2564 Date: Tue, 01 Jan 1980 00:01:00 +0000
2557 2565 From: quux
2558 2566 To: bar@xn--nicode-2ya.com
2559 2567
2560 2568 # HG changeset patch
2561 2569 # User test
2562 2570 # Date 1 0
2563 2571 # Thu Jan 01 00:00:01 1970 +0000
2564 2572 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2565 2573 # Parent 0000000000000000000000000000000000000000
2566 2574 a
2567 2575
2568 2576 diff -r 000000000000 -r 8580ff50825a a
2569 2577 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2570 2578 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2571 2579 @@ -0,0 +1,1 @@
2572 2580 +a
2573 2581
2574 2582
2575 2583
2576 2584 test outgoing:
2577 2585 $ hg up 1
2578 2586 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2579 2587
2580 2588 $ hg branch test
2581 2589 marked working directory as branch test
2582 2590 (branches are permanent and global, did you want a bookmark?)
2583 2591
2584 2592 $ echo d > d
2585 2593 $ hg add d
2586 2594 $ hg ci -md -d '4 0'
2587 2595 $ echo d >> d
2588 2596 $ hg ci -mdd -d '5 0'
2589 2597 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
2590 2598 @ 10:3b6f1ec9dde9 dd
2591 2599 |
2592 2600 o 9:2f9fa9b998c5 d
2593 2601 |
2594 2602 | o 8:7aead2484924 Added tag two, two.diff for changeset ff2c9fa2018b
2595 2603 | |
2596 2604 | o 7:045ca29b1ea2 Added tag one, one.patch for changeset 97d72e5f12c7
2597 2605 | |
2598 2606 | o 6:5d5ef15dfe5e Added tag zero, zero.foo for changeset 8580ff50825a
2599 2607 | |
2600 2608 | o 5:240fb913fc1b isolatin 8-bit encoding
2601 2609 | |
2602 2610 | o 4:a2ea8fc83dd8 long line
2603 2611 | |
2604 2612 | o 3:909a00e13e9d utf-8 content
2605 2613 | |
2606 2614 | o 2:ff2c9fa2018b c
2607 2615 |/
2608 2616 o 1:97d72e5f12c7 b
2609 2617 |
2610 2618 o 0:8580ff50825a a
2611 2619
2612 2620 $ hg phase --force --secret -r 10
2613 2621 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
2614 2622 comparing with ../t
2615 2623 From [test]: test
2616 2624 this patch series consists of 6 patches.
2617 2625
2618 2626
2619 2627 Write the introductory message for the patch series.
2620 2628
2621 2629 Cc:
2622 2630
2623 2631 displaying [PATCH 0 of 6] test ...
2624 2632 MIME-Version: 1.0
2625 2633 Content-Type: text/plain; charset="us-ascii"
2626 2634 Content-Transfer-Encoding: 7bit
2627 2635 Subject: [PATCH 0 of 6] test
2628 2636 Message-Id: <patchbomb.315532860@*> (glob)
2629 2637 User-Agent: Mercurial-patchbomb/* (glob)
2630 2638 Date: Tue, 01 Jan 1980 00:01:00 +0000
2631 2639 From: test
2632 2640 To: foo
2633 2641
2634 2642
2635 2643 displaying [PATCH 1 of 6] c ...
2636 2644 MIME-Version: 1.0
2637 2645 Content-Type: text/plain; charset="us-ascii"
2638 2646 Content-Transfer-Encoding: 7bit
2639 2647 Subject: [PATCH 1 of 6] c
2640 2648 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2641 2649 X-Mercurial-Series-Index: 1
2642 2650 X-Mercurial-Series-Total: 6
2643 2651 Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2644 2652 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2645 2653 In-Reply-To: <patchbomb.315532860@*> (glob)
2646 2654 References: <patchbomb.315532860@*> (glob)
2647 2655 User-Agent: Mercurial-patchbomb/* (glob)
2648 2656 Date: Tue, 01 Jan 1980 00:01:01 +0000
2649 2657 From: test
2650 2658 To: foo
2651 2659
2652 2660 # HG changeset patch
2653 2661 # User test
2654 2662 # Date 3 0
2655 2663 # Thu Jan 01 00:00:03 1970 +0000
2656 2664 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2657 2665 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2658 2666 c
2659 2667
2660 2668 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2661 2669 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2662 2670 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2663 2671 @@ -0,0 +1,1 @@
2664 2672 +c
2665 2673
2666 2674 displaying [PATCH 2 of 6] utf-8 content ...
2667 2675 MIME-Version: 1.0
2668 2676 Content-Type: text/plain; charset="us-ascii"
2669 2677 Content-Transfer-Encoding: 8bit
2670 2678 Subject: [PATCH 2 of 6] utf-8 content
2671 2679 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2672 2680 X-Mercurial-Series-Index: 2
2673 2681 X-Mercurial-Series-Total: 6
2674 2682 Message-Id: <909a00e13e9d78b575ae.315532862@*> (glob)
2675 2683 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2676 2684 In-Reply-To: <patchbomb.315532860@*> (glob)
2677 2685 References: <patchbomb.315532860@*> (glob)
2678 2686 User-Agent: Mercurial-patchbomb/* (glob)
2679 2687 Date: Tue, 01 Jan 1980 00:01:02 +0000
2680 2688 From: test
2681 2689 To: foo
2682 2690
2683 2691 # HG changeset patch
2684 2692 # User test
2685 2693 # Date 4 0
2686 2694 # Thu Jan 01 00:00:04 1970 +0000
2687 2695 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2688 2696 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2689 2697 utf-8 content
2690 2698
2691 2699 diff -r ff2c9fa2018b -r 909a00e13e9d description
2692 2700 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2693 2701 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2694 2702 @@ -0,0 +1,3 @@
2695 2703 +a multiline
2696 2704 +
2697 2705 +description
2698 2706 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2699 2707 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2700 2708 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2701 2709 @@ -0,0 +1,1 @@
2702 2710 +h\xc3\xb6mma! (esc)
2703 2711
2704 2712 displaying [PATCH 3 of 6] long line ...
2705 2713 MIME-Version: 1.0
2706 2714 Content-Type: text/plain; charset="us-ascii"
2707 2715 Content-Transfer-Encoding: quoted-printable
2708 2716 Subject: [PATCH 3 of 6] long line
2709 2717 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2710 2718 X-Mercurial-Series-Index: 3
2711 2719 X-Mercurial-Series-Total: 6
2712 2720 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@*> (glob)
2713 2721 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2714 2722 In-Reply-To: <patchbomb.315532860@*> (glob)
2715 2723 References: <patchbomb.315532860@*> (glob)
2716 2724 User-Agent: Mercurial-patchbomb/* (glob)
2717 2725 Date: Tue, 01 Jan 1980 00:01:03 +0000
2718 2726 From: test
2719 2727 To: foo
2720 2728
2721 2729 # HG changeset patch
2722 2730 # User test
2723 2731 # Date 4 0
2724 2732 # Thu Jan 01 00:00:04 1970 +0000
2725 2733 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2726 2734 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2727 2735 long line
2728 2736
2729 2737 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2730 2738 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2731 2739 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2732 2740 @@ -0,0 +1,4 @@
2733 2741 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2734 2742 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2735 2743 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2736 2744 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2737 2745 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2738 2746 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2739 2747 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2740 2748 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2741 2749 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2742 2750 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2743 2751 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2744 2752 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2745 2753 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2746 2754 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2747 2755 +foo
2748 2756 +
2749 2757 +bar
2750 2758
2751 2759 displaying [PATCH 4 of 6] isolatin 8-bit encoding ...
2752 2760 MIME-Version: 1.0
2753 2761 Content-Type: text/plain; charset="us-ascii"
2754 2762 Content-Transfer-Encoding: 8bit
2755 2763 Subject: [PATCH 4 of 6] isolatin 8-bit encoding
2756 2764 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2757 2765 X-Mercurial-Series-Index: 4
2758 2766 X-Mercurial-Series-Total: 6
2759 2767 Message-Id: <240fb913fc1b7ff15ddb.315532864@*> (glob)
2760 2768 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2761 2769 In-Reply-To: <patchbomb.315532860@*> (glob)
2762 2770 References: <patchbomb.315532860@*> (glob)
2763 2771 User-Agent: Mercurial-patchbomb/* (glob)
2764 2772 Date: Tue, 01 Jan 1980 00:01:04 +0000
2765 2773 From: test
2766 2774 To: foo
2767 2775
2768 2776 # HG changeset patch
2769 2777 # User test
2770 2778 # Date 5 0
2771 2779 # Thu Jan 01 00:00:05 1970 +0000
2772 2780 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2773 2781 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2774 2782 isolatin 8-bit encoding
2775 2783
2776 2784 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2777 2785 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2778 2786 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2779 2787 @@ -0,0 +1,1 @@
2780 2788 +h\xf6mma! (esc)
2781 2789
2782 2790 displaying [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a ...
2783 2791 MIME-Version: 1.0
2784 2792 Content-Type: text/plain; charset="us-ascii"
2785 2793 Content-Transfer-Encoding: 7bit
2786 2794 Subject: [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a
2787 2795 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2788 2796 X-Mercurial-Series-Index: 5
2789 2797 X-Mercurial-Series-Total: 6
2790 2798 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@*> (glob)
2791 2799 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2792 2800 In-Reply-To: <patchbomb.315532860@*> (glob)
2793 2801 References: <patchbomb.315532860@*> (glob)
2794 2802 User-Agent: Mercurial-patchbomb/* (glob)
2795 2803 Date: Tue, 01 Jan 1980 00:01:05 +0000
2796 2804 From: test
2797 2805 To: foo
2798 2806
2799 2807 # HG changeset patch
2800 2808 # User test
2801 2809 # Date 0 0
2802 2810 # Thu Jan 01 00:00:00 1970 +0000
2803 2811 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2804 2812 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2805 2813 Added tag zero, zero.foo for changeset 8580ff50825a
2806 2814
2807 2815 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2808 2816 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2809 2817 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2810 2818 @@ -0,0 +1,2 @@
2811 2819 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2812 2820 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2813 2821
2814 2822 displaying [PATCH 6 of 6] d ...
2815 2823 MIME-Version: 1.0
2816 2824 Content-Type: text/plain; charset="us-ascii"
2817 2825 Content-Transfer-Encoding: 7bit
2818 2826 Subject: [PATCH 6 of 6] d
2819 2827 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2820 2828 X-Mercurial-Series-Index: 6
2821 2829 X-Mercurial-Series-Total: 6
2822 2830 Message-Id: <2f9fa9b998c5fe3ac2bd.315532866@*> (glob)
2823 2831 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2824 2832 In-Reply-To: <patchbomb.315532860@*> (glob)
2825 2833 References: <patchbomb.315532860@*> (glob)
2826 2834 User-Agent: Mercurial-patchbomb/* (glob)
2827 2835 Date: Tue, 01 Jan 1980 00:01:06 +0000
2828 2836 From: test
2829 2837 To: foo
2830 2838
2831 2839 # HG changeset patch
2832 2840 # User test
2833 2841 # Date 4 0
2834 2842 # Thu Jan 01 00:00:04 1970 +0000
2835 2843 # Branch test
2836 2844 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2837 2845 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2838 2846 d
2839 2847
2840 2848 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2841 2849 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2842 2850 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2843 2851 @@ -0,0 +1,1 @@
2844 2852 +d
2845 2853
2846 2854
2847 2855 Don't prompt for a CC header.
2848 2856
2849 2857 $ echo "[email]" >> $HGRCPATH
2850 2858 $ echo "cc=" >> $HGRCPATH
2851 2859
2852 2860 dest#branch URIs:
2853 2861 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2854 2862 comparing with ../t
2855 2863 From [test]: test
2856 2864 this patch series consists of 1 patches.
2857 2865
2858 2866
2859 2867 displaying [PATCH] test ...
2860 2868 MIME-Version: 1.0
2861 2869 Content-Type: text/plain; charset="us-ascii"
2862 2870 Content-Transfer-Encoding: 7bit
2863 2871 Subject: [PATCH] test
2864 2872 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2865 2873 X-Mercurial-Series-Index: 1
2866 2874 X-Mercurial-Series-Total: 1
2867 2875 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2868 2876 X-Mercurial-Series-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2869 2877 User-Agent: Mercurial-patchbomb/* (glob)
2870 2878 Date: Tue, 01 Jan 1980 00:01:00 +0000
2871 2879 From: test
2872 2880 To: foo
2873 2881
2874 2882 # HG changeset patch
2875 2883 # User test
2876 2884 # Date 4 0
2877 2885 # Thu Jan 01 00:00:04 1970 +0000
2878 2886 # Branch test
2879 2887 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2880 2888 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2881 2889 d
2882 2890
2883 2891 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2884 2892 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2885 2893 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2886 2894 @@ -0,0 +1,1 @@
2887 2895 +d
2888 2896
2889 2897 #if no-windows
2890 2898
2891 2899 Set up a fake sendmail program
2892 2900
2893 2901 $ cat > pretendmail.sh << 'EOF'
2894 2902 > #!/bin/sh
2895 2903 > echo "$@"
2896 2904 > cat
2897 2905 > EOF
2898 2906 $ chmod +x pretendmail.sh
2899 2907
2900 2908 $ echo '[email]' >> $HGRCPATH
2901 2909 $ echo "method=`pwd`/pretendmail.sh" >> $HGRCPATH
2902 2910
2903 2911 Test introduction configuration
2904 2912 =================================
2905 2913
2906 2914 $ echo '[patchbomb]' >> $HGRCPATH
2907 2915
2908 2916 "auto" setting
2909 2917 ----------------
2910 2918
2911 2919 $ echo 'intro=auto' >> $HGRCPATH
2912 2920
2913 2921 single rev
2914 2922
2915 2923 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2916 2924 [1]
2917 2925
2918 2926 single rev + flag
2919 2927
2920 2928 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2921 2929 Write the introductory message for the patch series.
2922 2930
2923 2931
2924 2932 Multi rev
2925 2933
2926 2934 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2927 2935 Write the introductory message for the patch series.
2928 2936
2929 2937 "never" setting
2930 2938 -----------------
2931 2939
2932 2940 $ echo 'intro=never' >> $HGRCPATH
2933 2941
2934 2942 single rev
2935 2943
2936 2944 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2937 2945 [1]
2938 2946
2939 2947 single rev + flag
2940 2948
2941 2949 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2942 2950 Write the introductory message for the patch series.
2943 2951
2944 2952
2945 2953 Multi rev
2946 2954
2947 2955 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2948 2956 [1]
2949 2957
2950 2958 Multi rev + flag
2951 2959
2952 2960 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2953 2961 Write the introductory message for the patch series.
2954 2962
2955 2963 "always" setting
2956 2964 -----------------
2957 2965
2958 2966 $ echo 'intro=always' >> $HGRCPATH
2959 2967
2960 2968 single rev
2961 2969
2962 2970 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2963 2971 Write the introductory message for the patch series.
2964 2972
2965 2973 single rev + flag
2966 2974
2967 2975 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2968 2976 Write the introductory message for the patch series.
2969 2977
2970 2978
2971 2979 Multi rev
2972 2980
2973 2981 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2974 2982 Write the introductory message for the patch series.
2975 2983
2976 2984 Multi rev + flag
2977 2985
2978 2986 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2979 2987 Write the introductory message for the patch series.
2980 2988
2981 2989 bad value setting
2982 2990 -----------------
2983 2991
2984 2992 $ echo 'intro=mpmwearaclownnose' >> $HGRCPATH
2985 2993
2986 2994 single rev
2987 2995
2988 2996 $ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
2989 2997 From [test]: test
2990 2998 this patch series consists of 1 patches.
2991 2999
2992 3000 warning: invalid patchbomb.intro value "mpmwearaclownnose"
2993 3001 (should be one of always, never, auto)
2994 3002 -f test foo
2995 3003 MIME-Version: 1.0
2996 3004 Content-Type: text/plain; charset="us-ascii"
2997 3005 Content-Transfer-Encoding: 7bit
2998 3006 Subject: [PATCH] test
2999 3007 X-Mercurial-Node: 3b6f1ec9dde933a40a115a7990f8b320477231af
3000 3008 X-Mercurial-Series-Index: 1
3001 3009 X-Mercurial-Series-Total: 1
3002 3010 Message-Id: <3b6f1ec9dde933a40a11*> (glob)
3003 3011 X-Mercurial-Series-Id: <3b6f1ec9dde933a40a11.*> (glob)
3004 3012 User-Agent: Mercurial-patchbomb/* (glob)
3005 3013 Date: Tue, 01 Jan 1980 00:01:00 +0000
3006 3014 From: test
3007 3015 To: foo
3008 3016
3009 3017 # HG changeset patch
3010 3018 # User test
3011 3019 # Date 5 0
3012 3020 # Thu Jan 01 00:00:05 1970 +0000
3013 3021 # Branch test
3014 3022 # Node ID 3b6f1ec9dde933a40a115a7990f8b320477231af
3015 3023 # Parent 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
3016 3024 dd
3017 3025
3018 3026 diff -r 2f9fa9b998c5 -r 3b6f1ec9dde9 d
3019 3027 --- a/d Thu Jan 01 00:00:04 1970 +0000
3020 3028 +++ b/d Thu Jan 01 00:00:05 1970 +0000
3021 3029 @@ -1,1 +1,2 @@
3022 3030 d
3023 3031 +d
3024 3032
3025 3033 sending [PATCH] test ...
3026 3034 sending mail: $TESTTMP/t2/pretendmail.sh -f test foo
3027 3035
3028 3036 Test pull url header
3029 3037 =================================
3030 3038
3031 3039 basic version
3032 3040
3033 3041 $ echo 'intro=auto' >> $HGRCPATH
3034 3042 $ echo "publicurl=$TESTTMP/t2" >> $HGRCPATH
3035 3043 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep '^#'
3036 3044 abort: public url $TESTTMP/t2 is missing 3b6f1ec9dde9
3037 3045 (use 'hg push $TESTTMP/t2 -r 3b6f1ec9dde9')
3038 3046 [1]
3039 3047
3040 3048 public missing
3041 3049
3042 3050 $ echo 'publicurl=$TESTTMP/missing' >> $HGRCPATH
3043 3051 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3044 3052 unable to access public repo: $TESTTMP/missing
3045 3053 abort: repository $TESTTMP/missing not found!
3046 3054 [255]
3047 3055
3048 3056 node missing at public
3049 3057
3050 3058 $ hg clone -r '9' . ../t3
3051 3059 adding changesets
3052 3060 adding manifests
3053 3061 adding file changes
3054 3062 added 3 changesets with 3 changes to 3 files
3055 3063 new changesets 8580ff50825a:2f9fa9b998c5
3056 3064 updating to branch test
3057 3065 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
3058 3066 $ echo 'publicurl=$TESTTMP/t3' >> $HGRCPATH
3059 3067 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3060 3068 abort: public url $TESTTMP/t3 is missing 3b6f1ec9dde9
3061 3069 (use 'hg push $TESTTMP/t3 -r 3b6f1ec9dde9')
3062 3070 [255]
3063 3071
3064 3072 multiple heads are missing at public
3065 3073
3066 3074 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '2+10'
3067 3075 abort: public "$TESTTMP/t3" is missing ff2c9fa2018b and 1 others
3068 3076 (use 'hg push $TESTTMP/t3 -r ff2c9fa2018b -r 3b6f1ec9dde9')
3069 3077 [255]
3070 3078
3071 3079 #endif
General Comments 0
You need to be logged in to leave comments. Login now