remotefilelog: honor the `--format` arg of the `debugindex` command
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 21 Aug 2024 16:09:22 -0400
changeset 51819 438f4fca513e
parent 51817 adbfbbf9963f
child 51820 71fb6e0a7a35
remotefilelog: honor the `--format` arg of the `debugindex` command Flagged by PyCharm while investigating pytype spew. The other `**opts` above are already accessed as str. I've never used remotefilelog, and don't have a repo to test this on, so I'm trusting the nearby code.
hgext/remotefilelog/debugcommands.py
--- a/hgext/remotefilelog/debugcommands.py	Tue Aug 20 22:47:11 2024 -0400
+++ b/hgext/remotefilelog/debugcommands.py	Wed Aug 21 16:09:22 2024 -0400
@@ -115,7 +115,7 @@
     r = buildtemprevlog(repo, file_)
 
     # debugindex like normal
-    format = opts.get(b'format', 0)
+    format = opts.get('format', 0)
     if format not in (0, 1):
         raise error.Abort(_(b"unknown format %d") % format)