equal
deleted
inserted
replaced
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') |