Torsten Landschoff wrote:
From this information I created the following quick hack to fix or at
least work around the problem. It would surely be more elegant to get
the type once. OTOH the interaction with the svn server will most
probably be much slower than the swig type lookups.

Index:
subversion-1.1.3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
=================================================================== ---
subversion-1.1.3.orig/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
2005-03-18 01:17:55.747298032 +0100 +++
subversion-1.1.3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
  2005-03-18 01:24:17.883204544 +0100 @@ -1273,7 +1273,7 @@ { PyObject
  *receiver = baton; PyObject *result;
-  swig_type_info *tinfo = SWIG_TypeQuery("svn_log_changed_path_t *");
+  swig_type_info *tinfo;
  PyObject *chpaths;
  svn_error_t *err = SVN_NO_ERROR;

@@ -1281,6 +1281,7 @@
    return SVN_NO_ERROR;

  svn_swig_py_acquire_py_lock();
+  tinfo = SWIG_TypeQuery("svn_log_changed_path_t *");

  if (changed_paths)
    {

I've committed this (but also moved the tinfo declaration down as well), and nominated it for 1.1.4.


Max.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to