Show More
@@ -44,9 +44,12 b' class bundlespec:' | |||||
44 | # kept for Backward Compatibility concerns. |
|
44 | # kept for Backward Compatibility concerns. | |
45 | return self.params |
|
45 | return self.params | |
46 |
|
46 | |||
47 | def set_param(self, key, value): |
|
47 | def set_param(self, key, value, overwrite=True): | |
48 |
""" |
|
48 | """Set a bundle parameter value. | |
49 | self._explicit_params[key] = value |
|
49 | ||
|
50 | Will only overwrite if overwrite is true""" | |||
|
51 | if overwrite or key not in self._explicit_params: | |||
|
52 | self._explicit_params[key] = value | |||
50 |
|
53 | |||
51 |
|
54 | |||
52 | # Maps bundle version human names to changegroup versions. |
|
55 | # Maps bundle version human names to changegroup versions. |
General Comments 0
You need to be logged in to leave comments.
Login now