Mercurial > hg
diff tests/test-extensions-afterloaded.t @ 40463:cfa564037789
extensions: include current version in "invalid version" message
It is "not so rare" for the mercurial version to be badly detected at build
time. In such case, version check for extensions gets confused.
To help pinpoint the error, we now include the Mercurial's version number in
the error message.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 20 Apr 2018 18:08:54 +0200 |
parents | d1a49a94c324 |
children |
line wrap: on
line diff
--- a/tests/test-extensions-afterloaded.t Fri Oct 19 01:07:08 2018 +0200 +++ b/tests/test-extensions-afterloaded.t Fri Apr 20 18:08:54 2018 +0200 @@ -87,7 +87,7 @@ $ echo "foo = $basepath/foo.py" >> .hg/hgrc $ echo "bar = $basepath/minvers.py" >> .hg/hgrc $ hg log -r. -T'{rev}\n' - (third party extension bar requires version 9999.9999 or newer of Mercurial; disabling) + (third party extension bar requires version 9999.9999 or newer of Mercurial (current: *); disabling) (glob) foo.uisetup foo: bar loaded: False 0 @@ -107,7 +107,7 @@ $ echo "bar = $basepath/minvers.py" >> .hg/hgrc $ echo "foo = $basepath/foo.py" >> .hg/hgrc $ hg log -r. -T'{rev}\n' - (third party extension bar requires version 9999.9999 or newer of Mercurial; disabling) + (third party extension bar requires version 9999.9999 or newer of Mercurial (current: *); disabling) (glob) foo.uisetup foo: bar loaded: False 0