equal
deleted
inserted
replaced
71 python -c 'print repr(file("noeol","rb").read())' |
71 python -c 'print repr(file("noeol","rb").read())' |
72 python -c 'print repr(file("neweol","rb").read())' |
72 python -c 'print repr(file("neweol","rb").read())' |
73 hg st |
73 hg st |
74 |
74 |
75 # Test --eol and binary patches |
75 # Test --eol and binary patches |
76 python -c 'file("b", "wb").write("a\x00\nb")' |
76 python -c 'file("b", "wb").write("a\x00\nb\r\nd")' |
77 hg ci -Am addb |
77 hg ci -Am addb |
78 python -c 'file("b", "wb").write("a\x00\nc")' |
78 python -c 'file("b", "wb").write("a\x00\nc\r\nd")' |
79 hg diff --git > bin.diff |
79 hg diff --git > bin.diff |
80 hg revert --no-backup b |
80 hg revert --no-backup b |
81 echo % binary patch with --eol |
81 echo % binary patch with --eol |
82 hg import --config patch.eol='CRLF' -m changeb bin.diff |
82 hg import --config patch.eol='CRLF' -m changeb bin.diff |
83 python -c 'print repr(file("b","rb").read())' |
83 python -c 'print repr(file("b","rb").read())' |