txn->revnum = revnum;
txn->lastmark = revnum;
- if (fastImport.state() == QProcess::NotRunning)
+ if (fastImport.state() == QProcess::NotRunning) {
// start the process
+#ifndef DRY_RUN
fastImport.start("git-fast-import", QStringList());
+#else
+ fastImport.start("/bin/cat", QStringList());
+#endif
+ }
return txn;
}
fp.mode = mode;
fp.mark = ++lastmark;
+#ifndef DRY_RUN
repository->fastImport.write("blob\nmark :");
repository->fastImport.write(QByteArray::number(fp.mark));
repository->fastImport.write("\ndata ");
repository->fastImport.write(QByteArray::number(length));
repository->fastImport.write("\n", 1);
repository->fastImport.waitForBytesWritten(0);
+#endif
modifiedFiles.insert(path, fp);
return &repository->fastImport;
// 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
// print an ending newline
io->putChar('\n');
+#endif
return EXIT_SUCCESS;
}