Mercurial > hg > mercurial-source
changeset 35720:af924308110a stable
test-log-linerange: open binary file in binary mode
The '\n' characters were being translated on Windows, throwing off hg and git
hashes, as well as the file content in the diff.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 20 Oct 2017 21:29:15 -0400 |
parents | 9645c2a2bc2a |
children | aa05b95949fe |
files | tests/test-log-linerange.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-log-linerange.t +++ b/tests/test-log-linerange.t @@ -800,7 +800,7 @@ Binary files work but without diff hunks filtering. (Checking w/ and w/o diff.git option.) - >>> open('binary', 'w').write('this\nis\na\nbinary\0') + >>> open('binary', 'wb').write('this\nis\na\nbinary\0') $ hg add binary $ hg ci -m 'add a binary file' --quiet $ hg log -f -L binary,1:2 -p