mercurial/bundlecaches.py
branchstable
changeset 53042 cdd7bf612c7b
parent 53031 e705fec4a03f
--- 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)