Mercurial > hg
comparison tests/test-hgweb-json.t @ 40157:a8be613391d1
py3: use bytes literal in test-hgweb-json.t
# skip-blame just b'' prefix
Differential Revision: https://phab.mercurial-scm.org/D4970
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 11 Oct 2018 22:27:52 +0200 |
parents | 803b7569c9ea |
children | c67f55b02f02 |
comparison
equal
deleted
inserted
replaced
40156:5716d48b2a5b | 40157:a8be613391d1 |
---|---|
2199 $ HGENCODING=cp932 hg ci -m `"$PYTHON" -c 'print("\x94\x5c")'` | 2199 $ HGENCODING=cp932 hg ci -m `"$PYTHON" -c 'print("\x94\x5c")'` |
2200 | 2200 |
2201 Commit message with null character | 2201 Commit message with null character |
2202 | 2202 |
2203 $ echo foo >> da/foo | 2203 $ echo foo >> da/foo |
2204 >>> open('msg', 'wb').write('commit with null character: \0\n') and None | 2204 >>> open('msg', 'wb').write(b'commit with null character: \0\n') and None |
2205 $ hg ci -l msg | 2205 $ hg ci -l msg |
2206 $ rm msg | 2206 $ rm msg |
2207 | 2207 |
2208 Stop and restart with HGENCODING=cp932 | 2208 Stop and restart with HGENCODING=cp932 |
2209 | 2209 |