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