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.
--- 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()