diff options
-rw-r--r-- | src/svn.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/svn.cpp b/src/svn.cpp index 9e917ab..760e736 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -177,6 +177,9 @@ svn_error_t *QIODevice_write(void *baton, const char *data, apr_size_t *len) { QIODevice *device = reinterpret_cast<QIODevice *>(baton); device->write(data, *len); + + if (device->bytesToWrite() > 16384) + device->waitForBytesWritten(0); return SVN_NO_ERROR; } @@ -207,6 +210,9 @@ static int dumpBlob(Repository::Transaction *txn, svn_fs_root_t *fs_root, out_stream = streamForDevice(io, pool); SVN_ERR(svn_stream_copy(in_stream, out_stream, pool)); + // print an ending newline + io->putChar('\n'); + return EXIT_SUCCESS; } |