]> andersk Git - svn-all-fast-export.git/commitdiff
Don't forget the final newline for a file's data
authorThiago Macieira <thiago@cassini.local.lan>
Sun, 23 Dec 2007 21:12:14 +0000 (19:12 -0200)
committerThiago Macieira <thiago@cassini.local.lan>
Sun, 23 Dec 2007 21:12:14 +0000 (19:12 -0200)
src/svn.cpp

index 9e917abe1499fc62de369d9c06b039953b3b7cde..760e73654f250c8e8bebb56053b45a87cc692f2b 100644 (file)
@@ -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;
 }
 
This page took 0.277296 seconds and 5 git commands to generate.