# HG changeset patch # User Matt Harbison # Date 2024-08-21 20:09:22 # Node ID 438f4fca513e2d1384fe4e7aa6c61f17c99e0b48 # Parent adbfbbf9963fc243bbd27249bd72855e5c55bcbb 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. diff --git a/hgext/remotefilelog/debugcommands.py b/hgext/remotefilelog/debugcommands.py --- a/hgext/remotefilelog/debugcommands.py +++ b/hgext/remotefilelog/debugcommands.py @@ -115,7 +115,7 @@ def debugindex(orig, ui, repo, file_=Non 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)