# HG changeset patch # User Siddharth Agarwal # Date 1416378063 28800 # 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 -r 4fedf2a9b538 -r de5c76aaeaf4 mercurial/commands.py --- a/mercurial/commands.py Fri Nov 21 16:16:03 2014 -0800 +++ b/mercurial/commands.py Tue Nov 18 22:21:03 2014 -0800 @@ -3169,7 +3169,7 @@ 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')),