Show More
@@ -222,13 +222,16 b' def load(ui, name, path, loadingtime=Non' | |||
|
222 | 222 | # extensions short circuit when loaded with a known incompatible version |
|
223 | 223 | # of Mercurial. |
|
224 | 224 | minver = getattr(mod, 'minimumhgversion', None) |
|
225 | if minver and util.versiontuple(minver, 2) > util.versiontuple(n=2): | |
|
226 | msg = _( | |
|
227 | b'(third party extension %s requires version %s or newer ' | |
|
228 | b'of Mercurial (current: %s); disabling)\n' | |
|
229 | ) | |
|
230 | ui.warn(msg % (shortname, minver, util.version())) | |
|
231 | return | |
|
225 | if minver: | |
|
226 | curver = util.versiontuple(n=2) | |
|
227 | ||
|
228 | if None in curver or util.versiontuple(minver, 2) > curver: | |
|
229 | msg = _( | |
|
230 | b'(third party extension %s requires version %s or newer ' | |
|
231 | b'of Mercurial (current: %s); disabling)\n' | |
|
232 | ) | |
|
233 | ui.warn(msg % (shortname, minver, util.version())) | |
|
234 | return | |
|
232 | 235 | ui.log(b'extension', b' - validating extension tables: %s\n', shortname) |
|
233 | 236 | _validatetables(ui, mod) |
|
234 | 237 |
General Comments 0
You need to be logged in to leave comments.
Login now