[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-03 22:54:01 CET

On 1/3/07, Markus Fuchs <m.fuchs@fplusp.com> wrote:
> Hi Joe,
>
> Joe Swatosh <joe.swatosh@gmail.com> wrote:
> > Hi Markus,
> >
> > On 1/2/07, Markus Fuchs <m.fuchs@fplusp.com> wrote:
> > > 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.
> >
> >
> http://thread.gmane.org/gmane.comp.version-control.subversion.user/59235/foc
> us=59235
> > shows the results that I've been getting.
>
> Damn, I guess that means there's an error on my side. ;-)
> Thanks for the info!
>
> David, unfortunately I was not yet able to build the bindings. But from
> Joe's link above it looks like get_file() does not return the correct
> (fetched) revision number when the stream is omitted, doesn't it? Is this a
> bug in the unit case or in the bindings?

It turns out that this was a bug in the unit test case. The get_file
function only returns a revision number when you don't specify a
revision number yourself (i.e., you specify invalid_revnum as your
revision number). I've fixed this in r22888.

By some coincidence, the test worked on Linux before, because the
stack wasn't initialized and the function happened to reuse a value
which was initialized by a different function.

Everything should work fine now on Windows.

Cheers,

David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 3 22:54:33 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.