# HG changeset patch # User Matt Harbison # Date 1692652603 14400 # Node ID 1cfc49e342c3e0874d485941909ca20329c3beb3 # Parent 7825175d5ad5f6856c3f00e4a7bdebc904e424d5 debugindexdot: migrate `opts` to native kwargs diff -r 7825175d5ad5 -r 1cfc49e342c3 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Mon Aug 21 17:15:30 2023 -0400 +++ b/mercurial/debugcommands.py Mon Aug 21 17:16:43 2023 -0400 @@ -1926,8 +1926,9 @@ ) def debugindexdot(ui, repo, file_=None, **opts): """dump an index DAG as a graphviz dot file""" - opts = pycompat.byteskwargs(opts) - r = cmdutil.openstorage(repo, b'debugindexdot', file_, opts) + r = cmdutil.openstorage( + repo, b'debugindexdot', file_, pycompat.byteskwargs(opts) + ) ui.writenoi18n(b"digraph G {\n") for i in r: node = r.node(i)