comparison mercurial/commands.py @ 32431:9fd9f91b0c43

cmdutil: rename template param to export to fntemplate It's actually a template for the filename, not a formatter template.
author Augie Fackler <augie@google.com>
date Sat, 20 May 2017 20:15:05 -0400
parents c942c83ac2ec
children bce5ebe72859
comparison
equal deleted inserted replaced
32430:1f4be037f558 32431:9fd9f91b0c43
1999 if len(revs) > 1: 1999 if len(revs) > 1:
2000 ui.note(_('exporting patches:\n')) 2000 ui.note(_('exporting patches:\n'))
2001 else: 2001 else:
2002 ui.note(_('exporting patch:\n')) 2002 ui.note(_('exporting patch:\n'))
2003 ui.pager('export') 2003 ui.pager('export')
2004 cmdutil.export(repo, revs, template=opts.get('output'), 2004 cmdutil.export(repo, revs, fntemplate=opts.get('output'),
2005 switch_parent=opts.get('switch_parent'), 2005 switch_parent=opts.get('switch_parent'),
2006 opts=patch.diffallopts(ui, opts)) 2006 opts=patch.diffallopts(ui, opts))
2007 2007
2008 @command('files', 2008 @command('files',
2009 [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')), 2009 [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')),