]> andersk Git - svn-all-fast-export.git/blobdiff - src/svn.cpp
Introduce the dry-run mode
[svn-all-fast-export.git] / src / svn.cpp
index 760e73654f250c8e8bebb56053b45a87cc692f2b..aeca0fc25c415a728a79e4b90270d4b1aa393045 100644 (file)
@@ -197,13 +197,14 @@ static int dumpBlob(Repository::Transaction *txn, svn_fs_root_t *fs_root,
     // what type is it?
     int mode = pathMode(fs_root, pathname, pool);
 
-    svn_stream_t *in_stream, *out_stream;
     svn_filesize_t stream_length;
 
     SVN_ERR(svn_fs_file_length(&stream_length, fs_root, pathname, pool));
     QIODevice *io = txn->addFile(pathname, mode, stream_length);
 
+#ifndef DRY_RUN
     // open the file
+    svn_stream_t *in_stream, *out_stream;
     SVN_ERR(svn_fs_file_contents(&in_stream, fs_root, pathname, pool));
 
     // open a generic svn_stream_t for the QIODevice
@@ -212,6 +213,7 @@ static int dumpBlob(Repository::Transaction *txn, svn_fs_root_t *fs_root,
 
     // print an ending newline
     io->putChar('\n');
+#endif
 
     return EXIT_SUCCESS;
 }
This page took 0.024954 seconds and 4 git commands to generate.