mercurial/bundlecaches.py
changeset 49332 d89bfc075289
parent 49331 1b04d5213d0f
child 49648 9be765b82a90
equal deleted inserted replaced
49331:1b04d5213d0f 49332:d89bfc075289
   190                 b'must be prefixed with compression: %s'
   190                 b'must be prefixed with compression: %s'
   191             )
   191             )
   192             % spec
   192             % spec
   193         )
   193         )
   194 
   194 
   195     if b'-' in spec:
   195     pre_args = spec.split(b';', 1)[0]
       
   196     if b'-' in pre_args:
   196         compression, version = spec.split(b'-', 1)
   197         compression, version = spec.split(b'-', 1)
   197 
   198 
   198         if compression not in util.compengines.supportedbundlenames:
   199         if compression not in util.compengines.supportedbundlenames:
   199             raise error.UnsupportedBundleSpecification(
   200             raise error.UnsupportedBundleSpecification(
   200                 _(b'%s compression is not supported') % compression
   201                 _(b'%s compression is not supported') % compression