debugformat: fix formatting for compression level
`bytes(<int>)` gives a very different result as `str(<int>)` and the display
of `hg debugformat` have been broken for a while as a result.
--- a/mercurial/upgrade_utils/actions.py Thu Feb 15 18:10:41 2024 +0000
+++ b/mercurial/upgrade_utils/actions.py Wed Feb 21 02:12:58 2024 +0100
@@ -489,7 +489,7 @@
level = repo.ui.configint(b'storage', b'revlog.zstd.level')
if level is None:
return b'default'
- return bytes(level)
+ return b"%d" % level
@classmethod
def fromconfig(cls, repo):
@@ -501,7 +501,7 @@
level = repo.ui.configint(b'storage', b'revlog.zstd.level')
if level is None:
return b'default'
- return bytes(level)
+ return b"%d" % level
def find_format_upgrades(repo):