Mercurial > hg
comparison mercurial/commands.py @ 23690:de5c76aaeaf4
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.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 18 Nov 2014 22:21:03 -0800 |
parents | 3d4aa20b775d |
children | 3a4d8a6ce432 |
comparison
equal
deleted
inserted
replaced
23689:4fedf2a9b538 | 23690:de5c76aaeaf4 |
---|---|
3167 ui.note(_('exporting patches:\n')) | 3167 ui.note(_('exporting patches:\n')) |
3168 else: | 3168 else: |
3169 ui.note(_('exporting patch:\n')) | 3169 ui.note(_('exporting patch:\n')) |
3170 cmdutil.export(repo, revs, template=opts.get('output'), | 3170 cmdutil.export(repo, revs, template=opts.get('output'), |
3171 switch_parent=opts.get('switch_parent'), | 3171 switch_parent=opts.get('switch_parent'), |
3172 opts=patch.diffopts(ui, opts)) | 3172 opts=patch.diffallopts(ui, opts)) |
3173 | 3173 |
3174 @command('files', | 3174 @command('files', |
3175 [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')), | 3175 [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')), |
3176 ('0', 'print0', None, _('end filenames with NUL, for use with xargs')), | 3176 ('0', 'print0', None, _('end filenames with NUL, for use with xargs')), |
3177 ] + walkopts + formatteropts, | 3177 ] + walkopts + formatteropts, |