aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@trolltech.com>2007-12-27 13:41:16 +0100
committerThiago Macieira <thiago.macieira@trolltech.com>2007-12-27 13:41:16 +0100
commita812d0b14d8e341c48201354122578705af873e4 (patch)
tree833cd484e98804ce7a2bc9d89c47361e7ebd9ae4
parentb8549b9065cd1c3fb1914d3617838ef39fc12075 (diff)
downloadsvn2git-a812d0b14d8e341c48201354122578705af873e4.tar
svn2git-a812d0b14d8e341c48201354122578705af873e4.tar.gz
svn2git-a812d0b14d8e341c48201354122578705af873e4.tar.bz2
svn2git-a812d0b14d8e341c48201354122578705af873e4.tar.xz
svn2git-a812d0b14d8e341c48201354122578705af873e4.zip
write to disk every 10000 commits, not 9999 times each 10000 commits
-rw-r--r--src/repository.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index 76171ab..21641e7 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -120,7 +120,7 @@ Repository::Transaction *Repository::newTransaction(const QString &branch, const
txn->lastmark = revnum;
startFastImport();
- if (++commitCount % 10000)
+ if ((++commitCount % 10000) == 0)
// write everything to disk every 10000 commits
fastImport.write("checkpoint\n");
return txn;