tests/test-extension.t
changeset 45951 c26cb33e5219
parent 45948 250e18437e30
child 45952 a2104b9b1787
equal deleted inserted replaced
45950:c7c1efdfd4de 45951:c26cb33e5219
  1413   $ hg version -v --config extensions.throw=throw.py | grep '^ '
  1413   $ hg version -v --config extensions.throw=throw.py | grep '^ '
  1414     throw  external  1.0.0
  1414     throw  external  1.0.0
  1415 
  1415 
  1416 No declared supported version, extension complains:
  1416 No declared supported version, extension complains:
  1417   $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
  1417   $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
  1418   ** Unknown exception encountered with possibly-broken third-party extension throw
  1418   ** Unknown exception encountered with possibly-broken third-party extension throw 1.0.0
  1419   ** which supports versions unknown of Mercurial.
  1419   ** which supports versions unknown of Mercurial.
  1420   ** Please disable throw and try your action again.
  1420   ** Please disable throw and try your action again.
  1421   ** If that fixes the bug please report it to the extension author.
  1421   ** If that fixes the bug please report it to the extension author.
  1422   ** Python * (glob)
  1422   ** Python * (glob)
  1423   ** Mercurial Distributed SCM * (glob)
  1423   ** Mercurial Distributed SCM * (glob)
  1425 
  1425 
  1426 empty declaration of supported version, extension complains (but doesn't choke if
  1426 empty declaration of supported version, extension complains (but doesn't choke if
  1427 the value is improperly a str instead of bytes):
  1427 the value is improperly a str instead of bytes):
  1428   $ echo "testedwith = ''" >> throw.py
  1428   $ echo "testedwith = ''" >> throw.py
  1429   $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
  1429   $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
  1430   ** Unknown exception encountered with possibly-broken third-party extension throw
  1430   ** Unknown exception encountered with possibly-broken third-party extension throw 1.0.0
  1431   ** which supports versions unknown of Mercurial.
  1431   ** which supports versions unknown of Mercurial.
  1432   ** Please disable throw and try your action again.
  1432   ** Please disable throw and try your action again.
  1433   ** If that fixes the bug please report it to the extension author.
  1433   ** If that fixes the bug please report it to the extension author.
  1434   ** Python * (glob)
  1434   ** Python * (glob)
  1435   ** Mercurial Distributed SCM (*) (glob)
  1435   ** Mercurial Distributed SCM (*) (glob)
  1439 improperly a str instead of bytes):
  1439 improperly a str instead of bytes):
  1440   $ echo 'buglink = "http://example.com/bts"' >> throw.py
  1440   $ echo 'buglink = "http://example.com/bts"' >> throw.py
  1441   $ rm -f throw.pyc throw.pyo
  1441   $ rm -f throw.pyc throw.pyo
  1442   $ rm -Rf __pycache__
  1442   $ rm -Rf __pycache__
  1443   $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
  1443   $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
  1444   ** Unknown exception encountered with possibly-broken third-party extension throw
  1444   ** Unknown exception encountered with possibly-broken third-party extension throw 1.0.0
  1445   ** which supports versions unknown of Mercurial.
  1445   ** which supports versions unknown of Mercurial.
  1446   ** Please disable throw and try your action again.
  1446   ** Please disable throw and try your action again.
  1447   ** If that fixes the bug please report it to http://example.com/bts
  1447   ** If that fixes the bug please report it to http://example.com/bts
  1448   ** Python * (glob)
  1448   ** Python * (glob)
  1449   ** Mercurial Distributed SCM (*) (glob)
  1449   ** Mercurial Distributed SCM (*) (glob)
  1456   $ echo "testedwith = b'2.1.1'" >> throw.py
  1456   $ echo "testedwith = b'2.1.1'" >> throw.py
  1457   $ rm -f throw.pyc throw.pyo
  1457   $ rm -f throw.pyc throw.pyo
  1458   $ rm -Rf __pycache__
  1458   $ rm -Rf __pycache__
  1459   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
  1459   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
  1460   >   throw 2>&1 | egrep '^\*\*'
  1460   >   throw 2>&1 | egrep '^\*\*'
  1461   ** Unknown exception encountered with possibly-broken third-party extension older
  1461   ** Unknown exception encountered with possibly-broken third-party extension older (version N/A)
  1462   ** which supports versions 1.9 of Mercurial.
  1462   ** which supports versions 1.9 of Mercurial.
  1463   ** Please disable older and try your action again.
  1463   ** Please disable older and try your action again.
  1464   ** If that fixes the bug please report it to the extension author.
  1464   ** If that fixes the bug please report it to the extension author.
  1465   ** Python * (glob)
  1465   ** Python * (glob)
  1466   ** Mercurial Distributed SCM (version 2.2)
  1466   ** Mercurial Distributed SCM (version 2.2)
  1470   $ echo "util.version = lambda:b'2.1'" >> older.py
  1470   $ echo "util.version = lambda:b'2.1'" >> older.py
  1471   $ rm -f older.pyc older.pyo
  1471   $ rm -f older.pyc older.pyo
  1472   $ rm -Rf __pycache__
  1472   $ rm -Rf __pycache__
  1473   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
  1473   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
  1474   >   throw 2>&1 | egrep '^\*\*'
  1474   >   throw 2>&1 | egrep '^\*\*'
  1475   ** Unknown exception encountered with possibly-broken third-party extension older
  1475   ** Unknown exception encountered with possibly-broken third-party extension older (version N/A)
  1476   ** which supports versions 1.9 of Mercurial.
  1476   ** which supports versions 1.9 of Mercurial.
  1477   ** Please disable older and try your action again.
  1477   ** Please disable older and try your action again.
  1478   ** If that fixes the bug please report it to the extension author.
  1478   ** If that fixes the bug please report it to the extension author.
  1479   ** Python * (glob)
  1479   ** Python * (glob)
  1480   ** Mercurial Distributed SCM (version 2.1)
  1480   ** Mercurial Distributed SCM (version 2.1)
  1484   $ echo "util.version = lambda:b'1.9.3'" >> older.py
  1484   $ echo "util.version = lambda:b'1.9.3'" >> older.py
  1485   $ rm -f older.pyc older.pyo
  1485   $ rm -f older.pyc older.pyo
  1486   $ rm -Rf __pycache__
  1486   $ rm -Rf __pycache__
  1487   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
  1487   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
  1488   >   throw 2>&1 | egrep '^\*\*'
  1488   >   throw 2>&1 | egrep '^\*\*'
  1489   ** Unknown exception encountered with possibly-broken third-party extension throw
  1489   ** Unknown exception encountered with possibly-broken third-party extension throw 1.0.0
  1490   ** which supports versions 2.1 of Mercurial.
  1490   ** which supports versions 2.1 of Mercurial.
  1491   ** Please disable throw and try your action again.
  1491   ** Please disable throw and try your action again.
  1492   ** If that fixes the bug please report it to http://example.com/bts
  1492   ** If that fixes the bug please report it to http://example.com/bts
  1493   ** Python * (glob)
  1493   ** Python * (glob)
  1494   ** Mercurial Distributed SCM (version 1.9.3)
  1494   ** Mercurial Distributed SCM (version 1.9.3)