[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: 2007-01-02 16:10:56 CET

On 1/2/07, Markus Fuchs <m.fuchs@fplusp.com> wrote:
> 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.

Hi Markus,

I don't think that we run the tests for the Python bindings regularly
on Windows, but we definitely should! Currently, we only run it when
we cut a release. (We tested Subversion 1.4.0, but the test suite for
Subversion 1.4.0 doesn't have a test for ra.get_dir2, so that function
has not been tested on Windows.)

D.J. Heap, what needs to be done to upgrade the Windows build slaves
for the buildbot to regularly run the Python bindings test suite?

Cheers,

David

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 2 16:11:24 2007

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