changeset 50944:2a7dba8658a7

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 21 Aug 2023 16:19:51 -0400
parents 32c13716147e
children ad9b7017ca22
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()