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

Re: Python: Fetching properties of file without content

From: David James <james_at_cs.toronto.edu>
Date: 2006-12-31 20:44:29 CET

On 12/31/06, Markus Fuchs <m.fuchs@fplusp.com> wrote:
> I'm trying to get the properties of a file without fetching its contents.
> According to the docs this should work by passing a NULL pointer as the
> streaming object to svn_ra_get_file (cf.
> http://svn.collab.net/svn-doxygen/svn__ra_8h.html#a29).
> So, in Python this should look like so:
> properties = svn.ra.get_file(self.session, self.path, self.rev, None)
> Unfortunately this results in an "AttributeError: write" in svn_ra_get_file
> (ra.py).
>
> What am I doing wrong? Is it a bug?

Yes, this is a bug in the Python bindings, which I believe was fixed
in Subversion 1.3.0. What version of the Python bindings are you
using?

Cheers,

David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Dec 31 20:44:46 2006

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.