comparison mercurial/commands.py @ 31035:8c176811b735

files: enable pager
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 23:02:48 -0500
parents 270ab9d2ffbb
children effb22ac3648
comparison
equal deleted inserted replaced
31034:270ab9d2ffbb 31035:8c176811b735
2082 if opts.get('print0'): 2082 if opts.get('print0'):
2083 end = '\0' 2083 end = '\0'
2084 fmt = '%s' + end 2084 fmt = '%s' + end
2085 2085
2086 m = scmutil.match(ctx, pats, opts) 2086 m = scmutil.match(ctx, pats, opts)
2087 ui.pager('files')
2087 with ui.formatter('files', opts) as fm: 2088 with ui.formatter('files', opts) as fm:
2088 return cmdutil.files(ui, ctx, m, fm, fmt, opts.get('subrepos')) 2089 return cmdutil.files(ui, ctx, m, fm, fmt, opts.get('subrepos'))
2089 2090
2090 @command('^forget', walkopts, _('[OPTION]... FILE...'), inferrepo=True) 2091 @command('^forget', walkopts, _('[OPTION]... FILE...'), inferrepo=True)
2091 def forget(ui, repo, *pats, **opts): 2092 def forget(ui, repo, *pats, **opts):