comparison mercurial/bundlecaches.py @ 52963:42f78c859dd1

branching: merge with stable
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 18 Feb 2025 22:49:43 +0100
parents 48572371d478 961900fbd67c
children e705fec4a03f
comparison
equal deleted inserted replaced
52958:6a8a1792aab7 52963:42f78c859dd1
315 raise error.UnsupportedBundleSpecification( 315 raise error.UnsupportedBundleSpecification(
316 _(b'compression engine %s is not supported on v1 bundles') 316 _(b'compression engine %s is not supported on v1 bundles')
317 % compression 317 % compression
318 ) 318 )
319 319
320 # The specification for packed1 can optionally declare the data formats 320 # The specification for stream bundles can optionally declare the data formats
321 # required to apply it. If we see this metadata, compare against what the 321 # required to apply it. If we see this metadata, compare against what the
322 # repo supports and error if the bundle isn't compatible. 322 # repo supports and error if the bundle isn't compatible.
323 if version == b'packed1' and b'requirements' in params: 323 if b'requirements' in params:
324 requirements = set(cast(bytes, params[b'requirements']).split(b',')) 324 requirements = set(cast(bytes, params[b'requirements']).split(b','))
325 missingreqs = requirements - requirementsmod.STREAM_FIXED_REQUIREMENTS 325 missingreqs = requirements - requirementsmod.STREAM_FIXED_REQUIREMENTS
326 if missingreqs: 326 if missingreqs:
327 raise error.UnsupportedBundleSpecification( 327 raise error.UnsupportedBundleSpecification(
328 _(b'missing support for repository features: %s') 328 _(b'missing support for repository features: %s')