mercurial/commands.py
changeset 29882 307b20e5e505
parent 29858 33461139c31c
child 29884 ed793f41e83f
equal deleted inserted replaced
29881:12f8bef59bfa 29882:307b20e5e505
  3961     ctx = scmutil.revsingle(repo, opts.get('rev'), None)
  3961     ctx = scmutil.revsingle(repo, opts.get('rev'), None)
  3962 
  3962 
  3963     end = '\n'
  3963     end = '\n'
  3964     if opts.get('print0'):
  3964     if opts.get('print0'):
  3965         end = '\0'
  3965         end = '\0'
  3966     fm = ui.formatter('files', opts)
       
  3967     fmt = '%s' + end
  3966     fmt = '%s' + end
  3968 
  3967 
  3969     m = scmutil.match(ctx, pats, opts)
  3968     m = scmutil.match(ctx, pats, opts)
  3970     ret = cmdutil.files(ui, ctx, m, fm, fmt, opts.get('subrepos'))
  3969     with ui.formatter('files', opts) as fm:
  3971 
  3970         return cmdutil.files(ui, ctx, m, fm, fmt, opts.get('subrepos'))
  3972     fm.end()
       
  3973 
       
  3974     return ret
       
  3975 
  3971 
  3976 @command('^forget', walkopts, _('[OPTION]... FILE...'), inferrepo=True)
  3972 @command('^forget', walkopts, _('[OPTION]... FILE...'), inferrepo=True)
  3977 def forget(ui, repo, *pats, **opts):
  3973 def forget(ui, repo, *pats, **opts):
  3978     """forget the specified files on the next commit
  3974     """forget the specified files on the next commit
  3979 
  3975