D5763: py3: have test-revset2.t write test scripts in a more portable way
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jan 30 17:34:17 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1258db86e990: py3: have test-revset2.t write test scripts in a more portable way (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5763?vs=13605&id=13607
REVISION DETAIL
https://phab.mercurial-scm.org/D5763
AFFECTED FILES
contrib/python3-whitelist
tests/test-revset2.t
CHANGE DETAILS
diff --git a/tests/test-revset2.t b/tests/test-revset2.t
--- a/tests/test-revset2.t
+++ b/tests/test-revset2.t
@@ -1525,8 +1525,8 @@
$ hg init problematicencoding
$ cd problematicencoding
- $ "$PYTHON" > setup.sh <<EOF
- > print(u'''
+ $ "$PYTHON" <<EOF
+ > 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 <<EOF
- > print(u'''
+ $ "$PYTHON" <<EOF
+ > 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)'
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -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
To: durin42, pulkit, #hg-reviewers
Cc: mjpieters, mercurial-devel
More information about the Mercurial-devel
mailing list