Barry Scott wrote:
> Russ,
>
> Where did svn_cmdline_init go? It was in 0.29.0 its not in 0.30.0.
> Do I need it?
It was moved to a different header in revision 7168
(http://svn.collab.net/viewcvs-dev/svn/trunk/subversion/include/svn_cmdline.
h#rev7168). I don't know whether you need it since I'm not familiar with
this API (or most other ones).
>
> svn_config_get_config returns:
> {'config': '_30cc9700_p_svn_config_t', 'servers':
> '_00c79700_p_svn_config_t'}
>
> What is the servers value? Its not clear that the C API returns such
> a thing.
The return value of the python function corresponds to the "cfg_hash"
argument of the C function. According svn_config.h:
* @a *cfg_hash is a hash whose keys are @c const char * configuration
* categories (@c SVN_CONFIG_CATEGORY_SERVERS,
* @c SVN_CONFIG_CATEGORY_CONFIG, etc.) and whose values are the @c
* svn_config_t * items representing the configuration values for that
* category.
SVN_CONFIG_CATEGORY_SERVERS is #defined (in the same header) as "servers"
>
> Is the '_30cc9700_p_svn_config_t' what I put in ctx.config? I get this
> traceback:
>
> File "minimal_client.py", line 27, in main
> ctx.config = config
> File "C:\Python23\lib\site-packages\libsvn\client.py", line 132,
> in <lambda> __setattr__ = lambda self, name, value:
> _swig_setattr(self,
> svn_client_ctx_t, name, value)
> File "C:\Python23\lib\site-packages\libsvn\client.py", line 13, in
> _swig_setattr
> if method: return method(self,value)
> TypeError: Type error. Expected _p_apr_hash_t
>
Apparently not. I'd guess that you should set ctx.config to the return value
of svn_config_get_config(), since it's expecting a hash table, not an
individual svn_config_t pointer.
- Russ
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 3 16:57:32 2003