Show More
@@ -563,10 +563,10 b' Simulate a copy/paste turning LF into CR' | |||||
563 | > Mc$`b*O5$Pw00T?_*Z=?k |
|
563 | > Mc$`b*O5$Pw00T?_*Z=?k | |
564 | > |
|
564 | > | |
565 | > EOF |
|
565 | > EOF | |
566 |
>>> fp = |
|
566 | >>> fp = open('binary.diff', 'rb') | |
567 | >>> data = fp.read() |
|
567 | >>> data = fp.read() | |
568 | >>> fp.close() |
|
568 | >>> fp.close() | |
569 |
>>> |
|
569 | >>> open('binary.diff', 'wb').write(data.replace(b'\n', b'\r\n')) | |
570 | $ rm binary2 |
|
570 | $ rm binary2 | |
571 | $ hg import --no-commit binary.diff |
|
571 | $ hg import --no-commit binary.diff | |
572 | applying binary.diff |
|
572 | applying binary.diff |
General Comments 0
You need to be logged in to leave comments.
Login now