# HG changeset patch # User Augie Fackler # Date 1521930188 14400 # Node ID b303c9414190aab398e7853dc99ebd4e82e497a5 # Parent 0099cf9a9a8b504609ccef666059794149220168 subvertpy: same tweak to fsfs configuration as in swig diff --git a/hgsubversion/svnwrap/subvertpy_wrapper.py b/hgsubversion/svnwrap/subvertpy_wrapper.py --- a/hgsubversion/svnwrap/subvertpy_wrapper.py +++ b/hgsubversion/svnwrap/subvertpy_wrapper.py @@ -4,6 +4,7 @@ import os import shutil import sys import tempfile +import textwrap import urllib import collections @@ -56,6 +57,18 @@ def create_and_load(repopath, dumpfd): ''' create a new repository at repopath and load the given dump into it ''' repo = repos.create(repopath) + 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 + """)) + nullfd = open(os.devnull, 'w') try: