subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1158915 - /subversion/branches/fs-py/subversion/python/svn/fs/__init__.py
Date Wed, 17 Aug 2011 21:03:14 GMT
Author: hwright
Date: Wed Aug 17 21:03:14 2011
New Revision: 1158915

URL: http://svn.apache.org/viewvc?rev=1158915&view=rev
Log:
On the fs-py branch:
Add an empty section when reading the config to offset some test failures
(and note why we're doing this).

* subversion/python/svn/fs/__init__.py
  (FS._read_config): Add the rep-sharing section to the config object.

Modified:
    subversion/branches/fs-py/subversion/python/svn/fs/__init__.py

Modified: subversion/branches/fs-py/subversion/python/svn/fs/__init__.py
URL: http://svn.apache.org/viewvc/subversion/branches/fs-py/subversion/python/svn/fs/__init__.py?rev=1158915&r1=1158914&r2=1158915&view=diff
==============================================================================
--- subversion/branches/fs-py/subversion/python/svn/fs/__init__.py (original)
+++ subversion/branches/fs-py/subversion/python/svn/fs/__init__.py Wed Aug 17 21:03:14 2011
@@ -253,6 +253,11 @@ class FS(object):
 
     def _read_config(self):
         self._config = ConfigParser.RawConfigParser(_CONFIG_DEFAULTS)
+        ### We add this section manually below to get the tests running (the
+        ### tests clobber the default config file).  There may be less-hacky
+        ### ways of ensuring we don't error when attempting to read
+        ### non-existent config values.
+        self._config.add_section(CONFIG_SECTION_REP_SHARING)
         self._config.read(self.__path_config)
 
         if format >= MIN_REP_SHARING_FORMAT:



Mime
View raw message