]> andersk Git - svn-all-fast-export.git/blobdiff - src/repository.cpp
Avoid warnings on exit
[svn-all-fast-export.git] / src / repository.cpp
index c3f52fb1e4e815a73a74708ffa82ceb1d808c6b5..3bbbe7ec012c74cd0cdf459b9024c2f6f525d03d 100644 (file)
@@ -39,7 +39,7 @@ Repository::Repository(const Rules::Repository &rule)
 
 Repository::~Repository()
 {
-    if (fastImport.state() == QProcess::Running) {
+    if (fastImport.state() != QProcess::NotRunning) {
         fastImport.closeWriteChannel();
         fastImport.waitForFinished();
     }
@@ -69,7 +69,7 @@ void Repository::reloadBranches()
         if (branchExists) {
             startFastImport();
             fastImport.write("reset " + branchRef.toUtf8() +
-                             "\nfrom " + branchRef.toUtf8() + "^0\n");
+                             "\nfrom " + branchRef.toUtf8() + "^0\n\n");
             it->isCreated = true;
         }
     }
@@ -156,7 +156,7 @@ void Repository::Transaction::commit()
     QByteArray message = log;
     if (!message.endsWith('\n'))
         message += '\n';
-    message += "\nsvn=" + svnprefix + "; revision=" + QByteArray::number(revnum) + "\n";
+    message += "\nsvn path=" + svnprefix + "; revision=" + QByteArray::number(revnum) + "\n";
 
     {
         QByteArray branchRef = branch;
This page took 1.151849 seconds and 4 git commands to generate.