Mercurial > hg
changeset 50945:ad9b7017ca22
debugcapabilities: migrate `opts` to native kwargs
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 21 Aug 2023 16:51:07 -0400 |
parents | 2a7dba8658a7 |
children | 4135e7271b9e |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Mon Aug 21 16:19:51 2023 -0400 +++ b/mercurial/debugcommands.py Mon Aug 21 16:51:07 2023 -0400 @@ -484,8 +484,7 @@ @command(b'debugcapabilities', [], _(b'PATH'), norepo=True) def debugcapabilities(ui, path, **opts): """lists the capabilities of a remote peer""" - opts = pycompat.byteskwargs(opts) - peer = hg.peer(ui, opts, path) + peer = hg.peer(ui, pycompat.byteskwargs(opts), path) try: caps = peer.capabilities() ui.writenoi18n(b'Main capabilities:\n')