fileobj = sys.stdout
# On Windows switch to binary output (we don't want new line
# conversion on the output stream)
if sys.platform == "win32":
import os, msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
This allowed
bzr bundle >changes.bundle
...go to another branch...
bzr merge ..\changes.bundle
which previously failed with
bzr: ERROR: End of line marker was not \n in bzr revision-bundle
The way I did this to test 'bundle' was to add
fileobj = sys.stdout setmode( sys.stdout. fileno( ), os.O_BINARY)
# On Windows switch to binary output (we don't want new line
# conversion on the output stream)
if sys.platform == "win32":
import os, msvcrt
msvcrt.
This allowed
bzr bundle >changes.bundle
...go to another branch...
bzr merge ..\changes.bundle
which previously failed with
bzr: ERROR: End of line marker was not \n in bzr revision-bundle