Show More
@@ -440,34 +440,38 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
440 | 440 | generator.flatten(m, 0) |
|
441 | 441 | sendmail(sender, to + bcc + cc, fp.getvalue()) |
|
442 | 442 | |
|
443 | cmdtable = { | |
|
444 | "email": | |
|
445 | (patchbomb, | |
|
446 | [('a', 'attach', None, _('send patches as attachments')), | |
|
443 | emailopts = [ | |
|
444 | ('a', 'attach', None, _('send patches as attachments')), | |
|
447 | 445 | ('i', 'inline', None, _('send patches as inline attachments')), |
|
448 | 446 | ('', 'bcc', [], _('email addresses of blind copy recipients')), |
|
449 | 447 | ('c', 'cc', [], _('email addresses of copy recipients')), |
|
450 | 448 | ('d', 'diffstat', None, _('add diffstat output to messages')), |
|
451 | 449 | ('', 'date', '', _('use the given date as the sending date')), |
|
452 | 450 | ('', 'desc', '', _('use the given file as the series description')), |
|
453 | ('g', 'git', None, _('use git extended diff format')), | |
|
454 | 451 | ('f', 'from', '', _('email address of sender')), |
|
455 | ('', 'plain', None, _('omit hg patch header')), | |
|
456 | 452 | ('n', 'test', None, _('print messages that would be sent')), |
|
457 | 453 | ('m', 'mbox', '', |
|
458 | 454 | _('write messages to mbox file instead of sending them')), |
|
455 | ('s', 'subject', '', | |
|
456 | _('subject of first message (intro or single patch)')), | |
|
457 | ('t', 'to', [], _('email addresses of recipients')), | |
|
458 | ] | |
|
459 | ||
|
460 | ||
|
461 | cmdtable = { | |
|
462 | "email": | |
|
463 | (patchbomb, | |
|
464 | [('g', 'git', None, _('use git extended diff format')), | |
|
465 | ('', 'plain', None, _('omit hg patch header')), | |
|
459 | 466 | ('o', 'outgoing', None, |
|
460 | 467 | _('send changes not found in the target repository')), |
|
461 | 468 | ('b', 'bundle', None, |
|
462 | 469 | _('send changes not in target as a binary bundle')), |
|
463 | 470 | ('r', 'rev', [], _('a revision to send')), |
|
464 | ('s', 'subject', '', | |
|
465 | _('subject of first message (intro or single patch)')), | |
|
466 | ('t', 'to', [], _('email addresses of recipients')), | |
|
467 | 471 | ('', 'force', None, |
|
468 | 472 | _('run even when remote repository is unrelated (with -b)')), |
|
469 | 473 | ('', 'base', [], |
|
470 | 474 | _('a base changeset to specify instead of a destination (with -b)')), |
|
471 | ] + commands.remoteopts, | |
|
475 | ] + emailopts + commands.remoteopts, | |
|
472 | 476 | _('hg email [OPTION]... [DEST]...')) |
|
473 | 477 | } |
General Comments 0
You need to be logged in to leave comments.
Login now