mercurial/commands.py
changeset 37598 7a9c905e51f9
parent 37597 d110167610db
child 37604 daafaff4e5be
equal deleted inserted replaced
37597:d110167610db 37598:7a9c905e51f9
  1969         raise error.Abort(_("export requires at least one changeset"))
  1969         raise error.Abort(_("export requires at least one changeset"))
  1970     if len(revs) > 1:
  1970     if len(revs) > 1:
  1971         ui.note(_('exporting patches:\n'))
  1971         ui.note(_('exporting patches:\n'))
  1972     else:
  1972     else:
  1973         ui.note(_('exporting patch:\n'))
  1973         ui.note(_('exporting patch:\n'))
  1974     ui.pager('export')
  1974 
  1975     cmdutil.export(repo, revs, fntemplate=opts.get('output'),
  1975     fntemplate = opts.get('output')
       
  1976     if cmdutil.isstdiofilename(fntemplate):
       
  1977         fntemplate = ''
       
  1978 
       
  1979     if not fntemplate:
       
  1980         ui.pager('export')
       
  1981     cmdutil.export(repo, revs, fntemplate=fntemplate,
  1976                  switch_parent=opts.get('switch_parent'),
  1982                  switch_parent=opts.get('switch_parent'),
  1977                  opts=patch.diffallopts(ui, opts))
  1983                  opts=patch.diffallopts(ui, opts))
  1978 
  1984 
  1979 @command('files',
  1985 @command('files',
  1980     [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')),
  1986     [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')),