# HG changeset patch # User Augie Fackler # Date 1548364052 18000 # Node ID 4caf56c33009439bdb519a85db2683c572a784e5 # Parent fd2f1f0071b9a8da22f858572a89a34fddb07960 py3: have test-revset2.t write test scripts in a more portable way Fixes the test on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5763 diff -r fd2f1f0071b9 -r 4caf56c33009 contrib/python3-whitelist --- a/contrib/python3-whitelist Wed Jan 30 16:43:52 2019 -0500 +++ b/contrib/python3-whitelist Thu Jan 24 16:07:32 2019 -0500 @@ -630,6 +630,7 @@ test-revset-dirstate-parents.t test-revset-legacy-lookup.t test-revset-outgoing.t +test-revset2.t test-rollback.t test-run-tests.py test-run-tests.t diff -r fd2f1f0071b9 -r 4caf56c33009 tests/test-revset2.t --- a/tests/test-revset2.t Wed Jan 30 16:43:52 2019 -0500 +++ b/tests/test-revset2.t Thu Jan 24 16:07:32 2019 -0500 @@ -1525,8 +1525,8 @@ $ hg init problematicencoding $ cd problematicencoding - $ "$PYTHON" > setup.sh < print(u''' + $ "$PYTHON" < open('setup.sh', 'wb').write(u''' > echo a > text > hg add text > hg --encoding utf-8 commit -u '\u30A2' -m none @@ -1541,8 +1541,8 @@ $ sh < setup.sh test in problematic encoding - $ "$PYTHON" > test.sh < print(u''' + $ "$PYTHON" < open('test.sh', 'wb').write(u''' > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30A2)' > echo ==== > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30C2)'