diff options
author | Torgny Nyblom <kde@nyblom.org> | 2010-12-16 09:49:51 +0100 |
---|---|---|
committer | Torgny Nyblom <kde@nyblom.org> | 2010-12-16 09:49:51 +0100 |
commit | 432c369a9932b018bac8ffc7c1c0e3675b5ddc6f (patch) | |
tree | e6cfff00c0d544a0238341013e83ad2ed39c6905 | |
parent | 7dbe4e29789e76198ea63a004dbbe7d8e1ee72e9 (diff) | |
download | svn2git-432c369a9932b018bac8ffc7c1c0e3675b5ddc6f.tar svn2git-432c369a9932b018bac8ffc7c1c0e3675b5ddc6f.tar.gz svn2git-432c369a9932b018bac8ffc7c1c0e3675b5ddc6f.tar.bz2 svn2git-432c369a9932b018bac8ffc7c1c0e3675b5ddc6f.tar.xz svn2git-432c369a9932b018bac8ffc7c1c0e3675b5ddc6f.zip |
Only call startFastImport when needed
-rw-r--r-- | src/repository.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.cpp b/src/repository.cpp index 6476e1f..ac0a34b 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -384,7 +384,6 @@ void Repository::commit() Repository::Transaction *Repository::newTransaction(const QString &branch, const QString &svnprefix, int revnum) { - startFastImport(); if (!branches.contains(branch)) { qWarning() << "WARN: Transaction:" << branch << "is not a known branch in repository" << name << endl << "Going to create it automatically"; @@ -398,6 +397,7 @@ Repository::Transaction *Repository::newTransaction(const QString &branch, const txn->revnum = revnum; if ((++commitCount % CommandLineParser::instance()->optionArgument(QLatin1String("commit-interval"), QLatin1String("10000")).toInt()) == 0) { + startFastImport(); // write everything to disk every 10000 commits fastImport.write("checkpoint\n"); qDebug() << "checkpoint!, marks file trunkated"; |