Show More
@@ -412,7 +412,7 b' non-ascii content and truncation of mult' | |||
|
412 | 412 | > EOF |
|
413 | 413 | $ echo a >> a/a |
|
414 | 414 | $ hg --cwd a --encoding utf-8 commit -A -d '0 0' \ |
|
415 |
> -m `"$PYTHON" -c 'print |
|
|
415 | > -m `"$PYTHON" -c 'print("\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4")'` | |
|
416 | 416 | $ hg --traceback --cwd b --encoding utf-8 pull ../a | \ |
|
417 | 417 | > "$PYTHON" $TESTTMP/filter.py |
|
418 | 418 | pulling from ../a |
@@ -413,14 +413,14 b' no crash by empty group "()" while optim' | |||
|
413 | 413 | test that chained `or` operations never eat up stack (issue4624) |
|
414 | 414 | (uses `0:1` instead of `0` to avoid future optimization of trivial revisions) |
|
415 | 415 | |
|
416 |
$ hg log -T '{rev}\n' -r `"$PYTHON" -c "print |
|
|
416 | $ hg log -T '{rev}\n' -r `"$PYTHON" -c "print('+'.join(['0:1'] * 500))"` | |
|
417 | 417 | 0 |
|
418 | 418 | 1 |
|
419 | 419 | |
|
420 | 420 | test that repeated `-r` options never eat up stack (issue4565) |
|
421 | 421 | (uses `-r 0::1` to avoid possible optimization at old-style parser) |
|
422 | 422 | |
|
423 |
$ hg log -T '{rev}\n' `"$PYTHON" -c "for i in range(500): print |
|
|
423 | $ hg log -T '{rev}\n' `"$PYTHON" -c "for i in range(500): print('-r 0::1 ')"` | |
|
424 | 424 | 0 |
|
425 | 425 | 1 |
|
426 | 426 | |
@@ -1528,7 +1528,7 b' test author/desc/keyword in problematic ' | |||
|
1528 | 1528 | $ cd problematicencoding |
|
1529 | 1529 | |
|
1530 | 1530 | $ "$PYTHON" > setup.sh <<EOF |
|
1531 |
> print |
|
|
1531 | > print(u''' | |
|
1532 | 1532 | > echo a > text |
|
1533 | 1533 | > hg add text |
|
1534 | 1534 | > hg --encoding utf-8 commit -u '\u30A2' -m none |
@@ -1538,13 +1538,13 b' test author/desc/keyword in problematic ' | |||
|
1538 | 1538 | > hg --encoding utf-8 commit -u none -m '\u30A2' |
|
1539 | 1539 | > echo d > text |
|
1540 | 1540 | > hg --encoding utf-8 commit -u none -m '\u30C2' |
|
1541 | > '''.encode('utf-8') | |
|
1541 | > '''.encode('utf-8')) | |
|
1542 | 1542 | > EOF |
|
1543 | 1543 | $ sh < setup.sh |
|
1544 | 1544 | |
|
1545 | 1545 | test in problematic encoding |
|
1546 | 1546 | $ "$PYTHON" > test.sh <<EOF |
|
1547 |
> print |
|
|
1547 | > print(u''' | |
|
1548 | 1548 | > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30A2)' |
|
1549 | 1549 | > echo ==== |
|
1550 | 1550 | > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30C2)' |
@@ -1556,7 +1556,7 b' test in problematic encoding' | |||
|
1556 | 1556 | > hg --encoding cp932 log --template '{rev}\\n' -r 'keyword(\u30A2)' |
|
1557 | 1557 | > echo ==== |
|
1558 | 1558 | > hg --encoding cp932 log --template '{rev}\\n' -r 'keyword(\u30C2)' |
|
1559 | > '''.encode('cp932') | |
|
1559 | > '''.encode('cp932')) | |
|
1560 | 1560 | > EOF |
|
1561 | 1561 | $ sh < test.sh |
|
1562 | 1562 | 0 |
General Comments 0
You need to be logged in to leave comments.
Login now