subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1709922 - in /subversion/trunk/subversion/bindings/swig: core.i python/tests/run_all.py
Date Wed, 21 Oct 2015 21:30:04 GMT
Author: philip
Date: Wed Oct 21 21:30:04 2015
New Revision: 1709922

URL: http://svn.apache.org/viewvc?rev=1709922&view=rev
Log:
Allow SWIG to support svn_cache_config_t so that scripts can configure
the FSFS cache.  This works for Python, I think Ruby and Perl need some
more bits but I cannot work out what is required.

* subversion/bindings/swig/core.i: Include svn_cache_config header.

* subversion/bindings/swig/python/tests/run_all.py: Set the cache size.

Modified:
    subversion/trunk/subversion/bindings/swig/core.i
    subversion/trunk/subversion/bindings/swig/python/tests/run_all.py

Modified: subversion/trunk/subversion/bindings/swig/core.i
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/core.i?rev=1709922&r1=1709921&r2=1709922&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/core.i (original)
+++ subversion/trunk/subversion/bindings/swig/core.i Wed Oct 21 21:30:04 2015
@@ -838,6 +838,7 @@ core_set_current_pool (apr_pool_t *pool)
 %include svn_mergeinfo_h.swg
 %include svn_io_h.swg
 %include svn_checksum_h.swg
+%include svn_cache_config_h.swg
 
 
 

Modified: subversion/trunk/subversion/bindings/swig/python/tests/run_all.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/run_all.py?rev=1709922&r1=1709921&r2=1709922&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/run_all.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/run_all.py Wed Oct 21 21:30:04
2015
@@ -21,11 +21,15 @@
 import unittest, setup_path
 import mergeinfo, core, client, delta, checksum, pool, ra, wc, repository, \
        auth, trac.versioncontrol.tests
+from svn.core import svn_cache_config_get, svn_cache_config_set
 
 # Run all tests
 
 def suite():
   """Run all tests"""
+  settings = svn_cache_config_get()
+  settings.cache_size = long(1024*1024*32) ### Need explicit long
+  svn_cache_config_set(settings)
   s = unittest.TestSuite()
   s.addTest(core.suite())
   s.addTest(checksum.suite())



Mime
View raw message