Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 16990:1dbe8a2b1b96
export: add optional -r to synopsis
It is not already covered by [OPTION]..., because in this case REV... would
need to be marked optional.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 20 Jun 2012 16:46:10 +0200 |
parents | 634ad0b24ba2 |
children | 1aae34f109fd |
comparison
equal
deleted
inserted
replaced
16989:0b1d15194b3c | 16990:1dbe8a2b1b96 |
---|---|
2490 [('o', 'output', '', | 2490 [('o', 'output', '', |
2491 _('print output to file with formatted name'), _('FORMAT')), | 2491 _('print output to file with formatted name'), _('FORMAT')), |
2492 ('', 'switch-parent', None, _('diff against the second parent')), | 2492 ('', 'switch-parent', None, _('diff against the second parent')), |
2493 ('r', 'rev', [], _('revisions to export'), _('REV')), | 2493 ('r', 'rev', [], _('revisions to export'), _('REV')), |
2494 ] + diffopts, | 2494 ] + diffopts, |
2495 _('[OPTION]... [-o OUTFILESPEC] REV...')) | 2495 _('[OPTION]... [-o OUTFILESPEC] [-r] REV...')) |
2496 def export(ui, repo, *changesets, **opts): | 2496 def export(ui, repo, *changesets, **opts): |
2497 """dump the header and diffs for one or more changesets | 2497 """dump the header and diffs for one or more changesets |
2498 | 2498 |
2499 Print the changeset header and diffs for one or more revisions. | 2499 Print the changeset header and diffs for one or more revisions. |
2500 | 2500 |