diff options
author | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-26 22:40:26 -0200 |
---|---|---|
committer | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-26 22:40:26 -0200 |
commit | b50b928579919f51218f45e47db758e43ef757c1 (patch) | |
tree | e830b793538db36670a1d898611272cb5be115a7 /src/repository.cpp | |
parent | 6b510c52e7486d0f3208f77d5380e42f8616ffb2 (diff) | |
download | svn2git-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.cpp | 3 |
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; } |