#2611: Problem with SVN bindings (SVN 1.3.0, Trac r2771)
-----------------------------+----------------------------------------------
 Reporter:  Manuzhai         |        Owner:  cboos
     Type:  defect           |       Status:  new  
 Priority:  high             |    Milestone:  0.9.4
Component:  version control  |      Version:  devel
 Severity:  major            |   Resolution:       
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by [EMAIL PROTECTED]):

 I have not been able to reproduce the problem (even with Python 2.4 and
 mod_python 3.1.3), but, I think I have figured out how to fix it. Please
 try the below patch (for Subversion 1.3.0).

 {{{
 #!diff
 Index: subversion/bindings/swig/include/svn_types.swg
 ===================================================================
 --- subversion/bindings/swig/include/svn_types.swg      (revision 18239)
 +++ subversion/bindings/swig/include/svn_types.swg      (working copy)
 @@ -701,11 +701,17 @@

  %exception {
  #ifdef SWIGPYTHON
 -    svn_swig_py_release_py_lock();
 +    int released_lock = 0;
 +    if (_global_svn_swig_py_pool != NULL) {
 +      released_lock = 1;
 +      svn_swig_py_release_py_lock();
 +    }
  #endif
      $action
  #ifdef SWIGPYTHON
 -    svn_swig_py_acquire_py_lock();
 +    if (released_lock) {
 +      svn_swig_py_acquire_py_lock();
 +    }
  #endif
  }

 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2611>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to