mercurial/bundlecaches.py
changeset 50712 0913a49e020c
parent 50686 a41eeb877d07
child 51558 c4aab3661f25
child 51562 eac84af0c8cc
equal deleted inserted replaced
50711:40638610c6ee 50712:0913a49e020c
    86         """Set a bundle parameter value.
    86         """Set a bundle parameter value.
    87 
    87 
    88         Will only overwrite if overwrite is true"""
    88         Will only overwrite if overwrite is true"""
    89         if overwrite or key not in self._explicit_params:
    89         if overwrite or key not in self._explicit_params:
    90             self._explicit_params[key] = value
    90             self._explicit_params[key] = value
       
    91 
       
    92     def as_spec(self):
       
    93         parts = [b"%s-%s" % (self.compression, self.version)]
       
    94         for param in sorted(self._explicit_params.items()):
       
    95             parts.append(b'%s=%s' % param)
       
    96         return b';'.join(parts)
    91 
    97 
    92 
    98 
    93 # Maps bundle version human names to changegroup versions.
    99 # Maps bundle version human names to changegroup versions.
    94 _bundlespeccgversions = {
   100 _bundlespeccgversions = {
    95     b'v1': b'01',
   101     b'v1': b'01',