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

Re: python swig binding problem with _p_p_apr_hash_t

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-03-12 17:33:33 CET

Alexis Boutillier <alexis.boutillier@arteris.net> writes:

> 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.

svn_wc_entries_read() creates a hash in the C interface (note the two
asterisks in the header file), so generally we make the bindings just
return that hash. We don't typically care about returning an error
code because Python has an Exception system for that.

> 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)

So, try:

        adm_baton = wc.svn_wc_adm_open(None, dir, 1, 1, pool)
         listres = wc.svn_wc_entries_read(adm_baton, 1, pool)

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 12 17:34:53 2004

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

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