Disable text mode output under win32. Add test for diffs of CRLF files (issue250). diff -r e2ed92f4c0f7 tests/test-diff-newlines --- a/tests/test-diff-newlines Sat Feb 17 04:50:06 2007 -0200 +++ b/tests/test-diff-newlines Mon Feb 19 12:03:49 2007 +0100 @@ -1,8 +1,16 @@ #!/bin/sh hg init -python -c 'print "confuse str.splitlines\nembedded\rnewline"' > a + +python -u -c 'print "confuse str.splitlines\nembedded\rnewline"' > a +# Write a text file, without using redirections (pysh issue) +# Since stdout is a text stream under win32, diff used to output +# extra CR when diffing CRLF texts (issue250) +python -c 'f = file("b", "wb"); f.write("a\r\na\r\na"); f.close()' hg ci -Ama -d '1 0' + +python -c 'f = file("b", "wb"); f.write("a\r\nbb\r\na"); f.close()' echo clean diff >> a hg ci -mb -d '2 0' + hg diff -r0 -r1