]> andersk Git - svn-all-fast-export.git/blobdiff - src/repository.cpp
checkpoint every now and then
[svn-all-fast-export.git] / src / repository.cpp
index 0e9226fbf81efd5c336b22ac47811a59f92a5590..76171abb5bf7ded4a26c23e2ef0dbd3ca18fec44 100644 (file)
@@ -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;
 }
 
This page took 0.02612 seconds and 4 git commands to generate.