debugbundle: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 Aug 2023 16:19:51 -0400
changeset 50944 2a7dba8658a7
parent 50943 32c13716147e
child 50945 ad9b7017ca22
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.
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()