[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: Markus Fuchs <m.fuchs_at_fplusp.com>
Date: 2007-01-02 15:01:07 CET

David James <james@cs.toronto.edu> wrote:
> On 12/31/06, Shun-ichi GOTO <shunichi.goto@gmail.com> wrote:
> > 2007/1/1, David James <james@cs.toronto.edu>:
> > > On 12/31/06, Markus Fuchs <m.fuchs@fplusp.com> wrote:
> > > > 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?
> >
> > Really? I've tried with python binding 1.3.0, 1.3.1 and 1.4.2 on
> > Windows and 1.3.2 on debian.
> > I got same result with all of them: "AttributeError: write".
>
> Oops, you're right! This bug is still present in Subversion trunk.
> I've fixed this bug in r22849 in Subversion trunk, so the fix should
be included in Subversion 1.5 when it is released. I've also added some
tests to verify this fix.
>
> If you have time, can you verify my fix on your machine?

Thanks for your fix, David. I'll try to verify it as soon as I'm able to
build the Python bindings on my Windows box (never did that before) ;-).
BTW, do you know if the unit tests for the Python bindings get run on
Windows from time to time? I doubt that ra.get_dir2() works as expected
although there is a test_get_dir2() unit test in tests/ra.py.

Cheers,
Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 2 15:01:27 2007

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.