Mercurial > hg
changeset 50965:56a966bc6b1a
debugrevlogindex: migrate `opts` to native kwargs
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 21 Aug 2023 17:36:36 -0400 |
parents | 8f25df137282 |
children | 98d1117dc904 |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Mon Aug 21 17:35:13 2023 -0400 +++ b/mercurial/debugcommands.py Mon Aug 21 17:36:36 2023 -0400 @@ -3230,9 +3230,10 @@ ) def debugrevlogindex(ui, repo, file_=None, **opts): """dump the contents of a revlog index""" - opts = pycompat.byteskwargs(opts) - r = cmdutil.openrevlog(repo, b'debugrevlogindex', file_, opts) - format = opts.get(b'format', 0) + r = cmdutil.openrevlog( + repo, b'debugrevlogindex', file_, pycompat.byteskwargs(opts) + ) + format = opts.get('format', 0) if format not in (0, 1): raise error.Abort(_(b"unknown format %d") % format)