comparison tests/test-extension.t @ 17228:d1b49b02bc16 stable

dispatch: fix traceback when extension was tested with newer versions only The "worst" extension still is the one tested with the lowest tested version below the current version of Mercurial, but if an extension with was only tested with newer versions, it is considered a candidate for a bad extension, too. In this case extensions which have been tested with higher versions of Mercurial are considered better. This allows finding the oldest extension if ct can't be calculated correctly and therefore defaults to an empty tuple, and it involves less changes to the comparison logic during the current code freeze.
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 19 Jul 2012 21:20:56 +0200
parents 7af38fe1f829
children b623e323c561
comparison
equal deleted inserted replaced
17227:7af38fe1f829 17228:d1b49b02bc16
520 ** Unknown exception encountered with possibly-broken third-party extension older 520 ** Unknown exception encountered with possibly-broken third-party extension older
521 ** which supports versions 1.9.3 of Mercurial. 521 ** which supports versions 1.9.3 of Mercurial.
522 ** Please disable older and try your action again. 522 ** Please disable older and try your action again.
523 ** If that fixes the bug please report it to the extension author. 523 ** If that fixes the bug please report it to the extension author.
524 ** Python * (glob) 524 ** Python * (glob)
525 ** Mercurial Distributed SCM (*) (glob) 525 ** Mercurial Distributed SCM (version 2.2)
526 ** Extensions loaded: throw, older
527 One extension only tested with older, one only with newer versions:
528 $ echo "util.version = lambda:'2.1.0'" >> older.py
529 $ rm -f older.pyc older.pyo
530 $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
531 > throw 2>&1 | egrep '^\*\*'
532 ** Unknown exception encountered with possibly-broken third-party extension older
533 ** which supports versions 1.9.3 of Mercurial.
534 ** Please disable older and try your action again.
535 ** If that fixes the bug please report it to the extension author.
536 ** Python * (glob)
537 ** Mercurial Distributed SCM (version 2.1.0)
538 ** Extensions loaded: throw, older
539 Older extension is tested with current version, the other only with newer:
540 $ echo "util.version = lambda:'1.9.3'" >> older.py
541 $ rm -f older.pyc older.pyo
542 $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
543 > throw 2>&1 | egrep '^\*\*'
544 ** Unknown exception encountered with possibly-broken third-party extension throw
545 ** which supports versions 2.1.1 of Mercurial.
546 ** Please disable throw and try your action again.
547 ** If that fixes the bug please report it to http://example.com/bts
548 ** Python * (glob)
549 ** Mercurial Distributed SCM (version 1.9.3)
526 ** Extensions loaded: throw, older 550 ** Extensions loaded: throw, older
527 551
528 Declare the version as supporting this hg version, show regular bts link: 552 Declare the version as supporting this hg version, show regular bts link:
529 $ hgver=`python -c 'from mercurial import util; print util.version().split("+")[0]'` 553 $ hgver=`python -c 'from mercurial import util; print util.version().split("+")[0]'`
530 $ echo 'testedwith = """'"$hgver"'"""' >> throw.py 554 $ echo 'testedwith = """'"$hgver"'"""' >> throw.py