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