diff -r 40638610c6ee -r 0913a49e020c mercurial/bundlecaches.py --- a/mercurial/bundlecaches.py Mon Jun 19 18:15:35 2023 +0200 +++ b/mercurial/bundlecaches.py Wed Jun 21 15:53:33 2023 +0200 @@ -89,6 +89,12 @@ if overwrite or key not in self._explicit_params: self._explicit_params[key] = value + 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) + return b';'.join(parts) + # Maps bundle version human names to changegroup versions. _bundlespeccgversions = {