# HG changeset patch # User Matt Harbison # Date 1692649191 14400 # Node ID 2a7dba8658a7e2a3cd3c10080f5b5e3d725e215c # Parent 32c13716147ebdb34dfe99af68a4458dd35f4160 debugbundle: migrate `opts` to native kwargs This is a utility function that's only called by `debugbundle()`. The rest of the command was previously ported. diff -r 32c13716147e -r 2a7dba8658a7 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Fri Sep 08 20:34:41 2023 +0200 +++ b/mercurial/debugcommands.py Mon Aug 21 16:19:51 2023 -0400 @@ -394,7 +394,6 @@ def _debugobsmarkers(ui, part, indent=0, **opts): """display version and markers contained in 'data'""" - opts = pycompat.byteskwargs(opts) data = part.read() indent_string = b' ' * indent try: @@ -407,7 +406,7 @@ msg = b"%sversion: %d (%d bytes)\n" msg %= indent_string, version, len(data) ui.write(msg) - fm = ui.formatter(b'debugobsolete', opts) + fm = ui.formatter(b'debugobsolete', pycompat.byteskwargs(opts)) for rawmarker in sorted(markers): m = obsutil.marker(None, rawmarker) fm.startitem()