changeset 1559:d717b4de5f1e

svnwrap: configure fsfs.conf when using swig bindings By disabling a few features of fsfs, I'm able to speed tests up from 275 seconds to 250 seconds. Still too slow, but I won't complain about a nearly 10% improvement either.
author Augie Fackler <raf@durin42.com>
date Sat, 24 Mar 2018 17:16:08 -0400
parents ae572c9be4e6
children 0099cf9a9a8b
files hgsubversion/svnwrap/svn_swig_wrapper.py
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnwrap/svn_swig_wrapper.py
+++ b/hgsubversion/svnwrap/svn_swig_wrapper.py
@@ -4,6 +4,7 @@ import os
 import shutil
 import sys
 import tempfile
+import textwrap
 import urllib
 import collections
 
@@ -41,6 +42,17 @@ def create_and_load(repopath, dumpfd):
     ''' create a new repository at repopath and load the given dump into it '''
     pool = core.Pool()
     r = repos.svn_repos_create(repopath, '', '', None, None, pool)
+    with open(os.path.join(repopath, 'db', 'fsfs.conf'), 'w') as f:
+        f.write(textwrap.dedent("""\
+        # config settings for svn repos to try and speed up the testsuite
+        [rep-sharing]
+        enable-rep-sharing = false
+        [deltification]
+        enable-dir-deltification = false
+        enable-props-deltification = false
+        [compression]
+        compression-level=1
+        """))
 
     try:
         repos.svn_repos_load_fs2(r, dumpfd, None,