aboutsummaryrefslogtreecommitdiffstats
path: root/src/repository.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago@cassini.local.lan>2007-12-26 22:40:26 -0200
committerThiago Macieira <thiago@cassini.local.lan>2007-12-26 22:40:26 -0200
commitb50b928579919f51218f45e47db758e43ef757c1 (patch)
treee830b793538db36670a1d898611272cb5be115a7 /src/repository.cpp
parent6b510c52e7486d0f3208f77d5380e42f8616ffb2 (diff)
downloadsvn2git-b50b928579919f51218f45e47db758e43ef757c1.tar
svn2git-b50b928579919f51218f45e47db758e43ef757c1.tar.gz
svn2git-b50b928579919f51218f45e47db758e43ef757c1.tar.bz2
svn2git-b50b928579919f51218f45e47db758e43ef757c1.tar.xz
svn2git-b50b928579919f51218f45e47db758e43ef757c1.zip
checkpoint every now and then
Diffstat (limited to 'src/repository.cpp')
-rw-r--r--src/repository.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index 0e9226f..76171ab 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -120,6 +120,9 @@ Repository::Transaction *Repository::newTransaction(const QString &branch, const
txn->lastmark = revnum;
startFastImport();
+ if (++commitCount % 10000)
+ // write everything to disk every 10000 commits
+ fastImport.write("checkpoint\n");
return txn;
}