# HG changeset patch # User Siddharth Agarwal # Date 2014-11-19 06:21:03 # Node ID de5c76aaeaf4b30d5a1f78a604b192a6d7619228 # Parent 4fedf2a9b538961d982836eec152562ae51e17c4 export: explicitly honor all diffopts This is slightly more controversial than diff, but we hope that HGPLAIN=1 covers all the format-breaking ones. A possible alternative here that breaks BC is to honor all opts except the whitespace ones. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3169,7 +3169,7 @@ def export(ui, repo, *changesets, **opts ui.note(_('exporting patch:\n')) cmdutil.export(repo, revs, template=opts.get('output'), switch_parent=opts.get('switch_parent'), - opts=patch.diffopts(ui, opts)) + opts=patch.diffallopts(ui, opts)) @command('files', [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')),