##// END OF EJS Templates
bundle-spec: add an official method to format a spec into a string...
marmoute -
r51605:0913a49e default
parent child Browse files
Show More
@@ -89,6 +89,12 b' class bundlespec:'
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
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)
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 = {
General Comments 0
You need to be logged in to leave comments. Login now