comparison hgext/patchbomb.py @ 8076:5ec526c1a32f

help texts: write command line switches as -a/--abc
author Martin Geisler <mg@lazybytes.net>
date Sat, 18 Apr 2009 14:40:21 +0200
parents 1280934dd2dd
children 094e0d982c8a
comparison
equal deleted inserted replaced
8075:1f0a5a5fff43 8076:5ec526c1a32f
44 message describing the patches of your patchbomb. Then when all is 44 message describing the patches of your patchbomb. Then when all is
45 done, patchbomb messages are displayed. If PAGER environment variable 45 done, patchbomb messages are displayed. If PAGER environment variable
46 is set, your pager will be fired up once for each patchbomb message, 46 is set, your pager will be fired up once for each patchbomb message,
47 so you can verify everything is alright. 47 so you can verify everything is alright.
48 48
49 The "-m" (mbox) option is also very useful. Instead of previewing each 49 The -m/--mbox option is also very useful. Instead of previewing each
50 patchbomb message in a pager or sending the messages directly, it will 50 patchbomb message in a pager or sending the messages directly, it will
51 create a UNIX mailbox file with the patch emails. This mailbox file 51 create a UNIX mailbox file with the patch emails. This mailbox file
52 can be previewed with any mail user agent which supports UNIX mbox 52 can be previewed with any mail user agent which supports UNIX mbox
53 files, e.g. with mutt: 53 files, e.g. with mutt:
54 54
183 The message contains two or three body parts. First, the rest of 183 The message contains two or three body parts. First, the rest of
184 the changeset description. Next, (optionally) if the diffstat 184 the changeset description. Next, (optionally) if the diffstat
185 program is installed, the result of running diffstat on the patch. 185 program is installed, the result of running diffstat on the patch.
186 Finally, the patch itself, as generated by "hg export". 186 Finally, the patch itself, as generated by "hg export".
187 187
188 With --outgoing, emails will be generated for patches not found in 188 With -o/--outgoing, emails will be generated for patches not found
189 the destination repository (or only those which are ancestors of 189 in the destination repository (or only those which are ancestors
190 the specified revisions if any are provided) 190 of the specified revisions if any are provided)
191 191
192 With --bundle, changesets are selected as for --outgoing, but a 192 With -b/--bundle, changesets are selected as for --outgoing, but a
193 single email containing a binary Mercurial bundle as an attachment 193 single email containing a binary Mercurial bundle as an attachment
194 will be sent. 194 will be sent.
195 195
196 Examples: 196 Examples:
197 197
475 _('send changes not in target as a binary bundle')), 475 _('send changes not in target as a binary bundle')),
476 ('', 'bundlename', 'bundle', 476 ('', 'bundlename', 'bundle',
477 _('file name of the bundle attachment')), 477 _('file name of the bundle attachment')),
478 ('r', 'rev', [], _('a revision to send')), 478 ('r', 'rev', [], _('a revision to send')),
479 ('', 'force', None, 479 ('', 'force', None,
480 _('run even when remote repository is unrelated (with -b)')), 480 _('run even when remote repository is unrelated '
481 '(with -b/--bundle)')),
481 ('', 'base', [], 482 ('', 'base', [],
482 _('a base changeset to specify instead of a destination (with -b)')), 483 _('a base changeset to specify instead of a destination '
484 '(with -b/--bundle)')),
483 ('', 'intro', None, 485 ('', 'intro', None,
484 _('send an introduction email for a single patch')), 486 _('send an introduction email for a single patch')),
485 ] + emailopts + commands.remoteopts, 487 ] + emailopts + commands.remoteopts,
486 _('hg email [OPTION]... [DEST]...')) 488 _('hg email [OPTION]... [DEST]...'))
487 } 489 }