equal
deleted
inserted
replaced
2411 hg export -r "outgoing()" -o "%n-%m.patch" |
2411 hg export -r "outgoing()" -o "%n-%m.patch" |
2412 |
2412 |
2413 Returns 0 on success. |
2413 Returns 0 on success. |
2414 """ |
2414 """ |
2415 changesets += tuple(opts.get('rev', [])) |
2415 changesets += tuple(opts.get('rev', [])) |
2416 if not changesets: |
2416 revs = scmutil.revrange(repo, changesets) |
|
2417 if not revs: |
2417 raise util.Abort(_("export requires at least one changeset")) |
2418 raise util.Abort(_("export requires at least one changeset")) |
2418 revs = scmutil.revrange(repo, changesets) |
|
2419 if len(revs) > 1: |
2419 if len(revs) > 1: |
2420 ui.note(_('exporting patches:\n')) |
2420 ui.note(_('exporting patches:\n')) |
2421 else: |
2421 else: |
2422 ui.note(_('exporting patch:\n')) |
2422 ui.note(_('exporting patch:\n')) |
2423 cmdutil.export(repo, revs, template=opts.get('output'), |
2423 cmdutil.export(repo, revs, template=opts.get('output'), |