You might find pysvn an easier way to access client functionality from python
then the swig bindings. pysvn was written to avoid needing to know about all
the apr and other low level svn API's. See http://pysvn.tigris.org for
documentation, binary and source kits.
Barry
At 12-03-2004 09:22, Alexis Boutillier wrote:
>Hi,
>
>I try to make a client program that read the entries so i wanted to test
>the svn_wc_entries_read() fonction of the wc package.
>
>but i don't known how to use it and how to create an "_p_p_apr_hash_t"
>type to return the entries. I try to pass a dictionnary but it return an
>error like this :
>Traceback (most recent call last):
> File "test.py", line 45, in ?
> core.run_app(check)
> File "/opt/alexis/svn1.0/lib/svn-python/svn/core.py", line 33, in run_app
> return apply(func, (pool,) + args, kw)
> File "test.py", line 27, in check
> t = wc.svn_wc_entries_read(listres,adm_baton,True,pool)
>TypeError: Expected a pointer
>
>i don't know how to create an apr_hash_t in the pool there is no function
>availlable to do so.
>
>
>this is the python code :
>
>check(pool):
> adm_baton = wc.svn_wc_adm_open(None , dir, 1, 1, pool)
> listres = {}
> t = wc.svn_wc_entries_read(listres,adm_baton,True,pool)
>
>if __name__ == '__main__':
> core.run_app(check)
>
>
>thanks for the help.
>
>--
>Boutillier Alexis
>Methodology engineer
>
>Arteris SA
>The Network-on-Chip Company (TM)
>www.arteris.net
>
>6 parc Ariane Immeuble Mercure
>78284 Guyancourt Cedex
>France
>Office: (+33) 1 61 37 38 71
>Fac: (+33) 1 61 37 38 41
>Alexis.Boutillier@arteris.net
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Mar 13 14:25:47 2004