comparison 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
comparison
equal deleted inserted replaced
40462:6e2a24550b7e 40463:cfa564037789
85 85
86 $ echo '[extensions]' >> .hg/hgrc 86 $ echo '[extensions]' >> .hg/hgrc
87 $ echo "foo = $basepath/foo.py" >> .hg/hgrc 87 $ echo "foo = $basepath/foo.py" >> .hg/hgrc
88 $ echo "bar = $basepath/minvers.py" >> .hg/hgrc 88 $ echo "bar = $basepath/minvers.py" >> .hg/hgrc
89 $ hg log -r. -T'{rev}\n' 89 $ hg log -r. -T'{rev}\n'
90 (third party extension bar requires version 9999.9999 or newer of Mercurial; disabling) 90 (third party extension bar requires version 9999.9999 or newer of Mercurial (current: *); disabling) (glob)
91 foo.uisetup 91 foo.uisetup
92 foo: bar loaded: False 92 foo: bar loaded: False
93 0 93 0
94 94
95 Test the extensions.afterloaded() function when the requested extension is not 95 Test the extensions.afterloaded() function when the requested extension is not
105 105
106 $ echo '[extensions]' >> .hg/hgrc 106 $ echo '[extensions]' >> .hg/hgrc
107 $ echo "bar = $basepath/minvers.py" >> .hg/hgrc 107 $ echo "bar = $basepath/minvers.py" >> .hg/hgrc
108 $ echo "foo = $basepath/foo.py" >> .hg/hgrc 108 $ echo "foo = $basepath/foo.py" >> .hg/hgrc
109 $ hg log -r. -T'{rev}\n' 109 $ hg log -r. -T'{rev}\n'
110 (third party extension bar requires version 9999.9999 or newer of Mercurial; disabling) 110 (third party extension bar requires version 9999.9999 or newer of Mercurial (current: *); disabling) (glob)
111 foo.uisetup 111 foo.uisetup
112 foo: bar loaded: False 112 foo: bar loaded: False
113 0 113 0