Show More
@@ -6026,6 +6026,7 b' def version_(ui):' | |||||
6026 | for name, module in extensions.extensions(): |
|
6026 | for name, module in extensions.extensions(): | |
6027 | names.append(name) |
|
6027 | names.append(name) | |
6028 | vers.append(extensions.moduleversion(module)) |
|
6028 | vers.append(extensions.moduleversion(module)) | |
6029 | maxnamelen = max(len(n) for n in names) |
|
6029 | if names: | |
6030 | for i, name in enumerate(names): |
|
6030 | maxnamelen = max(len(n) for n in names) | |
6031 | ui.write(" %-*s %s\n" % (maxnamelen, name, vers[i])) |
|
6031 | for i, name in enumerate(names): | |
|
6032 | ui.write(" %-*s %s\n" % (maxnamelen, name, vers[i])) |
@@ -748,6 +748,17 b' Declare the version as supporting this h' | |||||
748 | Test version number support in 'hg version': |
|
748 | Test version number support in 'hg version': | |
749 | $ echo '__version__ = (1, 2, 3)' >> throw.py |
|
749 | $ echo '__version__ = (1, 2, 3)' >> throw.py | |
750 | $ rm -f throw.pyc throw.pyo |
|
750 | $ rm -f throw.pyc throw.pyo | |
|
751 | $ hg version -v | |||
|
752 | Mercurial Distributed SCM (version *) (glob) | |||
|
753 | (see http://mercurial.selenic.com for more information) | |||
|
754 | ||||
|
755 | Copyright (C) 2005-* Matt Mackall and others (glob) | |||
|
756 | This is free software; see the source for copying conditions. There is NO | |||
|
757 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |||
|
758 | ||||
|
759 | Enabled extensions: | |||
|
760 | ||||
|
761 | ||||
751 | $ hg version -v --config extensions.throw=throw.py |
|
762 | $ hg version -v --config extensions.throw=throw.py | |
752 | Mercurial Distributed SCM (version *) (glob) |
|
763 | Mercurial Distributed SCM (version *) (glob) | |
753 | (see http://mercurial.selenic.com for more information) |
|
764 | (see http://mercurial.selenic.com for more information) |
General Comments 0
You need to be logged in to leave comments.
Login now