mercurial/commands.py
changeset 37597 d110167610db
parent 37500 8bb3899a0f47
child 37598 7a9c905e51f9
equal deleted inserted replaced
37596:8c121a9837ca 37597:d110167610db
  1316     fntemplate = opts.pop('output', '')
  1316     fntemplate = opts.pop('output', '')
  1317     if cmdutil.isstdiofilename(fntemplate):
  1317     if cmdutil.isstdiofilename(fntemplate):
  1318         fntemplate = ''
  1318         fntemplate = ''
  1319 
  1319 
  1320     if fntemplate:
  1320     if fntemplate:
  1321         fm = formatter.nullformatter(ui, 'cat')
  1321         fm = formatter.nullformatter(ui, 'cat', opts)
  1322     else:
  1322     else:
  1323         ui.pager('cat')
  1323         ui.pager('cat')
  1324         fm = ui.formatter('cat', opts)
  1324         fm = ui.formatter('cat', opts)
  1325     with fm:
  1325     with fm:
  1326         return cmdutil.cat(ui, repo, ctx, m, fm, fntemplate, '',
  1326         return cmdutil.cat(ui, repo, ctx, m, fm, fntemplate, '',