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 |