changeset 1561:b303c9414190 1.9.1

subvertpy: same tweak to fsfs configuration as in swig
author Augie Fackler <raf@durin42.com>
date Sat, 24 Mar 2018 18:23:08 -0400
parents 0099cf9a9a8b
children d7d7e6e2f69a
files hgsubversion/svnwrap/subvertpy_wrapper.py
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: