mercurial/commands.py
changeset 50032 06619266679d
parent 50031 b979cdde99e6
child 50033 7e71d878c708
equal deleted inserted replaced
50031:b979cdde99e6 50032:06619266679d
  2964 
  2964 
  2965     opts = pycompat.byteskwargs(opts)
  2965     opts = pycompat.byteskwargs(opts)
  2966     if not pats:
  2966     if not pats:
  2967         raise error.InputError(_(b'no files specified'))
  2967         raise error.InputError(_(b'no files specified'))
  2968 
  2968 
  2969     with repo.wlock():
  2969     with repo.wlock(), repo.dirstate.changing_files(repo):
  2970         m = scmutil.match(repo[None], pats, opts)
  2970         m = scmutil.match(repo[None], pats, opts)
  2971         dryrun, interactive = opts.get(b'dry_run'), opts.get(b'interactive')
  2971         dryrun, interactive = opts.get(b'dry_run'), opts.get(b'interactive')
  2972         uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True)
  2972         uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True)
  2973         rejected = cmdutil.forget(
  2973         rejected = cmdutil.forget(
  2974             ui,
  2974             ui,