mercurial/exchange.py
changeset 41365 876494fd967d
parent 40767 33d30fb1e4ae
child 41704 3b0ba4575c8c
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
   295                                         'a known bundlespec') % version,
   295                                         'a known bundlespec') % version,
   296                                       hint=_('try upgrading your Mercurial '
   296                                       hint=_('try upgrading your Mercurial '
   297                                               'client'))
   297                                               'client'))
   298             elif part.type == 'stream2' and version is None:
   298             elif part.type == 'stream2' and version is None:
   299                 # A stream2 part requires to be part of a v2 bundle
   299                 # A stream2 part requires to be part of a v2 bundle
   300                 version = "v2"
       
   301                 requirements = urlreq.unquote(part.params['requirements'])
   300                 requirements = urlreq.unquote(part.params['requirements'])
   302                 splitted = requirements.split()
   301                 splitted = requirements.split()
   303                 params = bundle2._formatrequirementsparams(splitted)
   302                 params = bundle2._formatrequirementsparams(splitted)
   304                 return 'none-v2;stream=v2;%s' % params
   303                 return 'none-v2;stream=v2;%s' % params
   305 
   304