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

python and svn_config_get_config

From: Sebastian Tusk <sebastian.tusk_at_silver-style.com>
Date: 2003-10-14 17:36:52 CEST

I don't get the following code snippet to work.

import svn.util
import svn.client

svn.util.apr_initialize()
subpool = svn.util.svn_pool_create(None)

config_dir = svn.util.svn_config_ensure( '', subpool )
ctx = svn.client.svn_client_ctx_t()

print ctx, ctx.config, config_dir, subpool
ctx.config = svn.util.svn_config_get_config( \
 config_dir, subpool )

It yields this output with subversion 0.30.

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/home/dwhedon/subversion/0.30.0/subversion-0.30.0/debian/tmp/usr/lib/python
2.3/site-packages/libsvn/client.py", line 132, in <lambda>
  File
"/home/dwhedon/subversion/0.30.0/subversion-0.30.0/debian/tmp/usr/lib/python
2.3/site-packages/libsvn/client.py", line 13, in _swig_setattr
TypeError: Type error. Expected _p_apr_hash_t

What is wrong here?

Regards,
Sebastian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 14 17:41:47 2003

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.