Mercurial > hg
comparison tests/test-log-linerange.t @ 34937: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 | 0ccfc468423a |
children | dae84ccebc57 |
comparison
equal
deleted
inserted
replaced
34936:9645c2a2bc2a | 34937:af924308110a |
---|---|
798 | 798 |
799 | 799 |
800 Binary files work but without diff hunks filtering. | 800 Binary files work but without diff hunks filtering. |
801 (Checking w/ and w/o diff.git option.) | 801 (Checking w/ and w/o diff.git option.) |
802 | 802 |
803 >>> open('binary', 'w').write('this\nis\na\nbinary\0') | 803 >>> open('binary', 'wb').write('this\nis\na\nbinary\0') |
804 $ hg add binary | 804 $ hg add binary |
805 $ hg ci -m 'add a binary file' --quiet | 805 $ hg ci -m 'add a binary file' --quiet |
806 $ hg log -f -L binary,1:2 -p | 806 $ hg log -f -L binary,1:2 -p |
807 changeset: 10:c96381c229df | 807 changeset: 10:c96381c229df |
808 tag: tip | 808 tag: tip |