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

Re: geturl.py and Python binding problem

From: Craig McQueen <mcqueen-c_at_edsrd1.yzk.co.jp>
Date: Tue, 17 Feb 2009 16:37:19 +0900

Hello again,

I'd like to file a bug report, but apparently I'm meant to find someone
else who agrees that it's a bug first. Is there anyone who can test
this? Basically:
1) Have Windows XP.
2) Install Python 2.5
3) Install SVN 1.5.5
4) Install Python bindings -- svn-python-1.5.5.win32-py2.5.exe
5) Get the SVN 1.5.5 source code, and extract the "geturl.py" script
from the examples directory.
6) Run the "geturl.py" script, passing in a path of a working copy
directory. Confirm that a URL is printed.
7) Run the "geturl.py" script, passing in a path of a file in a working
copy. Confirm that an exception is generated.

This happens to me, at least for working copies with an "https://..."
repository.

Can anyone else confirm or deny this?

Regards,
Craig McQueen

Craig McQueen wrote:
> Hello all,
>
> I recently wanted to use the Python bindings to get a file's SVN URL.
> I found the geturl.py example in the SVN 1.5.5 source distribution. It
> ran nicely on my Linux PC with SVN 1.4.4 and Python 2.5. However, it
> didn't work properly on my Windows XP machine with SVN 1.5.5 and
> Python 2.5.
>
> If I run geturl.py with a directory name as an argument, then it
> returns the directory's SVN URL as expected. But, if I give it a
> filename as an argument, it gives a traceback:
> ...
> Fle "C:\...\geturl.py", line 22, in main
> print entry.url
> AttributeError: 'NoneType' object has no attribute 'url'
>
> On further examination, the svn.we.entry() function on the previous
> line is returning None.
>
> Any ideas on what's going on here? I'm baffled.
>
> Regards,
> Craig McQueen
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1177048

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-17 14:41:02 CET

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.