# HG changeset patch # User Matt Harbison # Date 2023-08-21 21:35:13 # Node ID 8f25df1372824da83deed2bcfd08c4a3619248e6 # Parent 7ef74fc79900ca26ab6bf0cbcd6eb005c4543375 debugrevlog: migrate `opts` to native kwargs diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -3210,10 +3210,11 @@ def debugrequirements(ui, repo): ) def debugrevlog(ui, repo, file_=None, **opts): """show data and statistics about a revlog""" - opts = pycompat.byteskwargs(opts) - r = cmdutil.openrevlog(repo, b'debugrevlog', file_, opts) - - if opts.get(b"dump"): + r = cmdutil.openrevlog( + repo, b'debugrevlog', file_, pycompat.byteskwargs(opts) + ) + + if opts.get("dump"): revlog_debug.dump(ui, r) else: revlog_debug.debug_revlog(ui, r)