Show More
@@ -460,7 +460,7 b' Setup main procedure of extension.' | |||
|
460 | 460 | > result.append(absdetail) |
|
461 | 461 | > result.append(legacydetail) |
|
462 | 462 | > result.append(proxied.detail) |
|
463 | > ui.write('LIB: %s\n' % '\nLIB: '.join(result)) | |
|
463 | > ui.write(b'LIB: %s\n' % '\nLIB: '.join(result)) | |
|
464 | 464 | > EOF |
|
465 | 465 | |
|
466 | 466 | Examine module importing. |
@@ -1283,7 +1283,7 b' If the extension specifies a buglink, sh' | |||
|
1283 | 1283 | |
|
1284 | 1284 | If the extensions declare outdated versions, accuse the older extension first: |
|
1285 | 1285 | $ echo "from mercurial import util" >> older.py |
|
1286 | $ echo "util.version = lambda:'2.2'" >> older.py | |
|
1286 | $ echo "util.version = lambda:b'2.2'" >> older.py | |
|
1287 | 1287 | $ echo "testedwith = b'1.9.3'" >> older.py |
|
1288 | 1288 | $ echo "testedwith = b'2.1.1'" >> throw.py |
|
1289 | 1289 | $ rm -f throw.pyc throw.pyo |
@@ -1388,7 +1388,7 b" Test version number support in 'hg versi" | |||
|
1388 | 1388 | Enabled extensions: |
|
1389 | 1389 | |
|
1390 | 1390 | throw external 1.2.3 |
|
1391 | $ echo 'getversion = lambda: "1.twentythree"' >> throw.py | |
|
1391 | $ echo 'getversion = lambda: b"1.twentythree"' >> throw.py | |
|
1392 | 1392 | $ rm -f throw.pyc throw.pyo |
|
1393 | 1393 | $ rm -Rf __pycache__ |
|
1394 | 1394 | $ hg version -v --config extensions.throw=throw.py --config extensions.strip= |
@@ -1678,7 +1678,7 b' Test synopsis and docstring extending' | |||
|
1678 | 1678 | > def exbookmarks(orig, *args, **opts): |
|
1679 | 1679 | > return orig(*args, **opts) |
|
1680 | 1680 | > def uisetup(ui): |
|
1681 | > synopsis = ' GREPME [--foo] [-x]' | |
|
1681 | > synopsis = b' GREPME [--foo] [-x]' | |
|
1682 | 1682 | > docstring = ''' |
|
1683 | 1683 | > GREPME make sure that this is in the help! |
|
1684 | 1684 | > ''' |
@@ -1713,9 +1713,9 b' Prohibit the use of unicode strings as t' | |||
|
1713 | 1713 | > from mercurial import registrar |
|
1714 | 1714 | > cmdtable = {} |
|
1715 | 1715 | > command = registrar.command(cmdtable) |
|
1716 | > @command(b'dummy', [('', 'opt', u'value', u'help')], 'ext [OPTIONS]') | |
|
1716 | > @command(b'dummy', [(b'', b'opt', u'value', u'help')], 'ext [OPTIONS]') | |
|
1717 | 1717 | > def ext(*args, **opts): |
|
1718 | > print(opts['opt']) | |
|
1718 | > print(opts[b'opt']) | |
|
1719 | 1719 | > EOF |
|
1720 | 1720 | $ cat > $TESTTMP/opt-unicode-default/.hg/hgrc << EOF |
|
1721 | 1721 | > [extensions] |
General Comments 0
You need to be logged in to leave comments.
Login now