tests/test-extension.t
changeset 45953 d896c958e428
parent 45952 a2104b9b1787
child 45954 a120d1c9c704
equal deleted inserted replaced
45952:a2104b9b1787 45953:d896c958e428
  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)
  1467   ** Extensions loaded: throw, older
  1467   ** Extensions loaded: older, throw
  1468 
  1468 
  1469 One extension only tested with older, one only with newer versions:
  1469 One extension only tested with older, one only with newer versions:
  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__
  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)
  1481   ** Extensions loaded: throw, older
  1481   ** Extensions loaded: older, throw
  1482 
  1482 
  1483 Older extension is tested with current version, the other only with newer:
  1483 Older extension is tested with current version, the other only with newer:
  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__
  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)
  1495   ** Extensions loaded: throw, older
  1495   ** Extensions loaded: older, throw
  1496 
  1496 
  1497 Ability to point to a different point
  1497 Ability to point to a different point
  1498   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
  1498   $ hg --config extensions.throw=throw.py --config extensions.older=older.py \
  1499   >   --config ui.supportcontact='Your Local Goat Lenders' throw 2>&1 | egrep '^\*\*'
  1499   >   --config ui.supportcontact='Your Local Goat Lenders' throw 2>&1 | egrep '^\*\*'
  1500   ** unknown exception encountered, please report by visiting
  1500   ** unknown exception encountered, please report by visiting
  1501   ** Your Local Goat Lenders
  1501   ** Your Local Goat Lenders
  1502   ** Python * (glob)
  1502   ** Python * (glob)
  1503   ** Mercurial Distributed SCM (*) (glob)
  1503   ** Mercurial Distributed SCM (*) (glob)
  1504   ** Extensions loaded: throw, older
  1504   ** Extensions loaded: older, throw
  1505 
  1505 
  1506 Declare the version as supporting this hg version, show regular bts link:
  1506 Declare the version as supporting this hg version, show regular bts link:
  1507   $ hgver=`hg debuginstall -T '{hgver}'`
  1507   $ hgver=`hg debuginstall -T '{hgver}'`
  1508   $ echo 'testedwith = """'"$hgver"'"""' >> throw.py
  1508   $ echo 'testedwith = """'"$hgver"'"""' >> throw.py
  1509   $ if [ -z "$hgver" ]; then
  1509   $ if [ -z "$hgver" ]; then