diff -r 46603c00a9f2 -r cdd7bf612c7b mercurial/bundlecaches.py --- a/mercurial/bundlecaches.py Tue Mar 11 10:37:39 2025 +0100 +++ b/mercurial/bundlecaches.py Tue Mar 11 02:29:42 2025 +0100 @@ -102,8 +102,12 @@ def as_spec(self): parts = [b"%s-%s" % (self.compression, self.version)] - for param in sorted(self._explicit_params.items()): - parts.append(b'%s=%s' % param) + for param, raw_value in sorted(self._explicit_params.items()): + if isinstance(raw_value, bool): + value = b"yes" if raw_value else b"no" + else: + value = raw_value + parts.append(b'%s=%s' % (param, value)) return b';'.join(parts)