# HG changeset patch # User Augie Fackler # Date 1521926168 14400 # Node ID d717b4de5f1eb73a070c51d54dda208c3eb16a7c # Parent ae572c9be4e618023cb7c95d1e2fec447b2e98a2 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. diff --git a/hgsubversion/svnwrap/svn_swig_wrapper.py b/hgsubversion/svnwrap/svn_swig_wrapper.py --- 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,