Mercurial > public > mercurial-scm > hg
diff hgext/remotefilelog/debugcommands.py @ 51815:438f4fca513e
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.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 21 Aug 2024 16:09:22 -0400 |
parents | 460e80488cf0 |
children | c371134fef01 |
line wrap: on
line diff
--- 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)