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