[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Multiple problems with svn python bindings

From: Jon Trowbridge <trow_at_ximian.com>
Date: 2002-08-30 07:28:05 CEST

In the course of trying to work on gsvn, I've had a number of problems
with the python bindings for the svn_client API. I don't know the
first thing about swig, so I'm not in a good position to try to
resolve these issues myself.

Here are the problems I've found so far:

* svn_client_commit, svn_client_log and svn_client_diff are %ignored
  in svn_client.i. A comment in that file says that the problem has
  to do with apr_array_header_t and pools.

* A number of functions take a svn_wc_notify_func_t and a notify baton
  as arguments. While the comments in svn_client.h say that the
  notify function can be NULL, passing in None for the notify function
  causes a segfault. As far as I can tell, there is no way to construct
  a non-NULL svn_wc_notify_func_t from inside of python. Am I missing
  something?

  (This is a problem with svn_client_checkout, svn_client_update,
  svn_client_switch, svn_client_add, svn_client_mkdir, svn_client_delete,
  svn_client_revert, svn_client_resolve, and several others.)

* When calling svn_client_checkout or svn_client_update, a TypeError
  is produced if the xml_src is None.

* svn_client_proplist segfaults when I call it on a file that actually
  has properties set. (If no properties are set, it correctly returns
  an empty array.)

* I don't see how to access the data returned by svn_client_propget.
  The values of the hash that comes back are not strings, but instead are
  things like: <read-only buffer ptr 0x8179f80, size 111 at 0x81740d8>

I have no idea if these things are easy or hard to fix, or if I've
just misunderstood how the bindings are supposed to work. Any and all
suggestions are appreciated.

Thanks,
-JT

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 30 07:39:09 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.