##// END OF EJS Templates
upgrade: capitalize the `deficiency` constant...
marmoute -
r46608:8037d064 default
parent child Browse files
Show More
@@ -151,7 +151,7 b' def preservedrequirements(repo):'
151 return set()
151 return set()
152
152
153
153
154 deficiency = b'deficiency'
154 DEFICIENCY = b'deficiency'
155 optimisation = b'optimization'
155 optimisation = b'optimization'
156
156
157
157
@@ -165,13 +165,13 b' class improvement(object):'
165 will be mapped to an action later in the upgrade process.
165 will be mapped to an action later in the upgrade process.
166
166
167 type
167 type
168 Either ``deficiency`` or ``optimisation``. A deficiency is an obvious
168 Either ``DEFICIENCY`` or ``optimisation``. A deficiency is an obvious
169 problem. An optimization is an action (sometimes optional) that
169 problem. An optimization is an action (sometimes optional) that
170 can be taken to further improve the state of the repository.
170 can be taken to further improve the state of the repository.
171
171
172 description
172 description
173 Message intended for humans explaining the improvement in more detail,
173 Message intended for humans explaining the improvement in more detail,
174 including the implications of it. For ``deficiency`` types, should be
174 including the implications of it. For ``DEFICIENCY`` types, should be
175 worded in the present tense. For ``optimisation`` types, should be
175 worded in the present tense. For ``optimisation`` types, should be
176 worded in the future tense.
176 worded in the future tense.
177
177
@@ -210,7 +210,7 b' def registerformatvariant(cls):'
210 class formatvariant(improvement):
210 class formatvariant(improvement):
211 """an improvement subclass dedicated to repository format"""
211 """an improvement subclass dedicated to repository format"""
212
212
213 type = deficiency
213 type = DEFICIENCY
214 ### The following attributes should be defined for each class:
214 ### The following attributes should be defined for each class:
215
215
216 # machine-readable string uniquely identifying this improvement. it will be
216 # machine-readable string uniquely identifying this improvement. it will be
@@ -218,7 +218,7 b' class formatvariant(improvement):'
218 name = None
218 name = None
219
219
220 # message intended for humans explaining the improvement in more detail,
220 # message intended for humans explaining the improvement in more detail,
221 # including the implications of it ``deficiency`` types, should be worded
221 # including the implications of it ``DEFICIENCY`` types, should be worded
222 # in the present tense.
222 # in the present tense.
223 description = None
223 description = None
224
224
General Comments 0
You need to be logged in to leave comments. Login now