export: explicitly honor all diffopts
authorSiddharth Agarwal <sid0@fb.com>
Tue, 18 Nov 2014 22:21:03 -0800
changeset 23690 de5c76aaeaf4
parent 23689 4fedf2a9b538
child 23691 e41bcb019633
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.
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')),