Mercurial > hg
comparison tests/test-revset.t @ 33262:8e6f4939a69a
tests: replace yet more calls to `python` with $PYTHON
These are some simple cases. More to come in a future change.
Reviewers: krbullock
Reviewed By: krbullock
Differential Revision: https://phab.mercurial-scm.org/D4
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 05 Jul 2017 11:10:11 -0500 |
parents | 247bae545061 |
children | 2428e8ec0793 |
comparison
equal
deleted
inserted
replaced
33261:be49f3fdcd10 | 33262:8e6f4939a69a |
---|---|
4178 # u30C2 0x83 0x61(= 'a') | 4178 # u30C2 0x83 0x61(= 'a') |
4179 | 4179 |
4180 $ hg init problematicencoding | 4180 $ hg init problematicencoding |
4181 $ cd problematicencoding | 4181 $ cd problematicencoding |
4182 | 4182 |
4183 $ python > setup.sh <<EOF | 4183 $ $PYTHON > setup.sh <<EOF |
4184 > print u''' | 4184 > print u''' |
4185 > echo a > text | 4185 > echo a > text |
4186 > hg add text | 4186 > hg add text |
4187 > hg --encoding utf-8 commit -u '\u30A2' -m none | 4187 > hg --encoding utf-8 commit -u '\u30A2' -m none |
4188 > echo b > text | 4188 > echo b > text |
4194 > '''.encode('utf-8') | 4194 > '''.encode('utf-8') |
4195 > EOF | 4195 > EOF |
4196 $ sh < setup.sh | 4196 $ sh < setup.sh |
4197 | 4197 |
4198 test in problematic encoding | 4198 test in problematic encoding |
4199 $ python > test.sh <<EOF | 4199 $ $PYTHON > test.sh <<EOF |
4200 > print u''' | 4200 > print u''' |
4201 > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30A2)' | 4201 > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30A2)' |
4202 > echo ==== | 4202 > echo ==== |
4203 > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30C2)' | 4203 > hg --encoding cp932 log --template '{rev}\\n' -r 'author(\u30C2)' |
4204 > echo ==== | 4204 > echo ==== |