# HG changeset patch # User Matt Harbison # Date 1692508482 14400 # Node ID 57ae6063c494fb6c6ef988d2b51ae1c2daa036b3 # Parent de3191c0cec908e3a55ad8882fde1cb993e4b1a6 copy: migrate `opts` to native kwargs diff -r de3191c0cec9 -r 57ae6063c494 mercurial/commands.py --- a/mercurial/commands.py Sun Aug 20 01:12:26 2023 -0400 +++ b/mercurial/commands.py Sun Aug 20 01:14:42 2023 -0400 @@ -2496,10 +2496,9 @@ Returns 0 on success, 1 if errors are encountered. """ - opts = pycompat.byteskwargs(opts) context = lambda repo: repo.dirstate.changing_files(repo) - rev = opts.get(b'at_rev') + rev = opts.get('at_rev') ctx = None if rev: ctx = logcmdutil.revsingle(repo, rev) @@ -2508,9 +2507,9 @@ def context(repo): return util.nullcontextmanager() - opts[b'at_rev'] = ctx.rev() + opts['at_rev'] = ctx.rev() with repo.wlock(), context(repo): - return cmdutil.copy(ui, repo, pats, opts) + return cmdutil.copy(ui, repo, pats, pycompat.byteskwargs(opts)) @command(