Show More
@@ -7255,21 +7255,21 b' def version_(ui):' | |||
|
7255 | 7255 | )) |
|
7256 | 7256 | |
|
7257 | 7257 | ui.note(_("\nEnabled extensions:\n\n")) |
|
7258 | if ui.verbose: | |
|
7259 | # format names and versions into columns | |
|
7260 |
|
|
|
7261 |
|
|
|
7262 | place = [] | |
|
7263 | for name, module in extensions.extensions(): | |
|
7264 | names.append(name) | |
|
7265 |
|
|
|
7266 | if extensions.ismoduleinternal(module): | |
|
7267 | place.append(_("internal")) | |
|
7268 | else: | |
|
7269 | place.append(_("external")) | |
|
7270 | if names: | |
|
7271 | maxnamelen = max(len(n) for n in names) | |
|
7272 | for i, name in enumerate(names): | |
|
7258 | # format names and versions into columns | |
|
7259 | names = [] | |
|
7260 | vers = [] | |
|
7261 | place = [] | |
|
7262 | for name, module in extensions.extensions(): | |
|
7263 | names.append(name) | |
|
7264 | vers.append(extensions.moduleversion(module)) | |
|
7265 | if extensions.ismoduleinternal(module): | |
|
7266 | place.append(_("internal")) | |
|
7267 | else: | |
|
7268 | place.append(_("external")) | |
|
7269 | if names: | |
|
7270 | maxnamelen = max(len(n) for n in names) | |
|
7271 | for i, name in enumerate(names): | |
|
7272 | if ui.verbose: | |
|
7273 | 7273 | ui.write(" %-*s %s %s\n" % |
|
7274 | 7274 | (maxnamelen, name, place[i], vers[i])) |
|
7275 | 7275 |
@@ -1236,6 +1236,9 b" Test version number support in 'hg versi" | |||
|
1236 | 1236 | |
|
1237 | 1237 | throw external 1.twentythree |
|
1238 | 1238 | |
|
1239 | $ hg version -q --config extensions.throw=throw.py | |
|
1240 | Mercurial Distributed SCM (version *) (glob) | |
|
1241 | ||
|
1239 | 1242 | Refuse to load extensions with minimum version requirements |
|
1240 | 1243 | |
|
1241 | 1244 | $ cat > minversion1.py << EOF |
General Comments 0
You need to be logged in to leave comments.
Login now