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