mercurial/commands.py
changeset 50005 16b78c0de506
parent 50004 3c34a224c232
child 50006 feaa5d08bb19
equal deleted inserted replaced
50004:3c34a224c232 50005:16b78c0de506
  5943     after, force = opts.get(b'after'), opts.get(b'force')
  5943     after, force = opts.get(b'after'), opts.get(b'force')
  5944     dryrun = opts.get(b'dry_run')
  5944     dryrun = opts.get(b'dry_run')
  5945     if not pats and not after:
  5945     if not pats and not after:
  5946         raise error.InputError(_(b'no files specified'))
  5946         raise error.InputError(_(b'no files specified'))
  5947 
  5947 
  5948     m = scmutil.match(repo[None], pats, opts)
  5948     with repo.wlock():
  5949     subrepos = opts.get(b'subrepos')
  5949         m = scmutil.match(repo[None], pats, opts)
  5950     uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True)
  5950         subrepos = opts.get(b'subrepos')
  5951     return cmdutil.remove(
  5951         uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True)
  5952         ui, repo, m, b"", uipathfn, after, force, subrepos, dryrun=dryrun
  5952         return cmdutil.remove(
  5953     )
  5953             ui, repo, m, b"", uipathfn, after, force, subrepos, dryrun=dryrun
       
  5954         )
  5954 
  5955 
  5955 
  5956 
  5956 @command(
  5957 @command(
  5957     b'rename|move|mv',
  5958     b'rename|move|mv',
  5958     [
  5959     [