diff mercurial/bundlecaches.py @ 51573:4a9d0898bf16

bundlespec: fix the "streamv2" and "streamv3-exp" variant In c4aab3661f25, we broken this feature by adding unicode instead of bytes to the dictionary. On the other hand, this feature was never tested, so augment the tests to tests this.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 09 Apr 2024 14:36:01 +0200
parents c4aab3661f25
children 9b51a4fb0f96
line wrap: on
line diff
--- a/mercurial/bundlecaches.py	Wed Apr 03 15:33:25 2024 +0200
+++ b/mercurial/bundlecaches.py	Tue Apr 09 14:36:01 2024 +0200
@@ -136,7 +136,7 @@
         b'cg.version': b'02',
         b'obsolescence': False,
         b'phases': False,
-        b"stream": "v2",
+        b"stream": b"v2",
         b'tagsfnodescache': False,
         b'revbranchcache': False,
     },
@@ -145,7 +145,7 @@
         b'cg.version': b'03',
         b'obsolescence': False,
         b'phases': False,
-        b"stream": "v3-exp",
+        b"stream": b"v3-exp",
         b'tagsfnodescache': False,
         b'revbranchcache': False,
     },