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