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