Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 31031:bd538ed3b9e6
export: migrate to modern pager API
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 06 Feb 2017 22:58:54 -0500 |
parents | ed0023e47412 |
children | 1cec1d863008 |
comparison
equal
deleted
inserted
replaced
31030:ed0023e47412 | 31031:bd538ed3b9e6 |
---|---|
2020 raise error.Abort(_("export requires at least one changeset")) | 2020 raise error.Abort(_("export requires at least one changeset")) |
2021 if len(revs) > 1: | 2021 if len(revs) > 1: |
2022 ui.note(_('exporting patches:\n')) | 2022 ui.note(_('exporting patches:\n')) |
2023 else: | 2023 else: |
2024 ui.note(_('exporting patch:\n')) | 2024 ui.note(_('exporting patch:\n')) |
2025 ui.pager('export') | |
2025 cmdutil.export(repo, revs, template=opts.get('output'), | 2026 cmdutil.export(repo, revs, template=opts.get('output'), |
2026 switch_parent=opts.get('switch_parent'), | 2027 switch_parent=opts.get('switch_parent'), |
2027 opts=patch.diffallopts(ui, opts)) | 2028 opts=patch.diffallopts(ui, opts)) |
2028 | 2029 |
2029 @command('files', | 2030 @command('files', |