]> andersk Git - svn-all-fast-export.git/blobdiff - src/repository.cpp
Support Qt 4.3 too
[svn-all-fast-export.git] / src / repository.cpp
index 5faf2af106338eeb90f349d362751a5cb7930d1a..cfe4db93425df8f54df3daa1ac62541554eac777 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include "repository.h"
+#include "options.h"
 #include <QTextStream>
 #include <QDebug>
 #include <QLinkedList>
@@ -39,7 +40,11 @@ public:
 
     inline void remove(Repository *repo)
     {
+#if QT_VERSION >= 0x040400
         removeOne(repo);
+#else
+        removeAll(repo);
+#endif
     }
 };
 static ProcessCache processCache;
@@ -246,7 +251,8 @@ void Repository::Transaction::commit()
     QByteArray message = log;
     if (!message.endsWith('\n'))
         message += '\n';
-    message += "\nsvn path=" + svnprefix + "; revision=" + QByteArray::number(revnum) + "\n";
+    if (Options::globalOptions->switches.value("metadata", true))
+        message += "\nsvn path=" + svnprefix + "; revision=" + QByteArray::number(revnum) + "\n";
 
     {
         QByteArray branchRef = branch;
This page took 0.250911 seconds and 4 git commands to generate.