diff options
author | Scott Lamb <slamb@slamb.org> | 2007-07-16 01:31:00 -0700 |
---|---|---|
committer | Chris Lee <clee@kde.org> | 2007-07-16 01:34:49 -0700 |
commit | e1aa392c397b9a10c6e6cbcf50a3efd99319978f (patch) | |
tree | 85658fbdf00d870a6f4e3c58c3df0a6c3695bf00 | |
parent | 9f234284a7513a205227c2bd2ac7b67719a46d08 (diff) | |
download | hg-fast-export-e1aa392c397b9a10c6e6cbcf50a3efd99319978f.tar.gz |
This prevents invalid command errors caused by bytes not being flushed to
git-fastimport in the same order as they were written to the buffer.
Signed-off-by: Scott Lamb <slamb@slamb.org>
-rwxr-xr-x | svn-fast-export.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svn-fast-export.py b/svn-fast-export.py index a2304c7..77496f1 100755 --- a/svn-fast-export.py +++ b/svn-fast-export.py @@ -28,8 +28,10 @@ def dump_file_blob(root, full_path, pool): stream_length = svn_fs_file_length(root, full_path, pool) stream = svn_fs_file_contents(root, full_path, pool) sys.stdout.write("data %s\n" % stream_length) + sys.stdout.flush() ostream = svn_stream_for_stdout(pool) svn_stream_copy(stream, ostream, pool) + svn_stream_close(ostream) sys.stdout.write("\n") |