# HG changeset patch
# User Mitsuhiro Koga <shiena.jp@gmail.com>
# Date 1351509379 -32400
# Node ID 77b22e5b4ea6c248e079afd0f1e544cb5690ce20
# Parent  3e59f9af15b01c5f0801fc7f32586889f147790b
svn_swig_wrapper: Ensure subversion config files

We will create a subversion config file if it does not exist.
Currently, svn_config_ensure() exists only swig.

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
@@ -61,6 +61,7 @@ def optrev(revnum):
     optrev.value.number = revnum
     return optrev
 
+core.svn_config_ensure(None)
 svn_config = core.svn_config_get_config(None)
 class RaCallbacks(ra.Callbacks):
     @staticmethod