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

geturl.py and Python binding problem

From: Craig McQueen <mcqueen-c_at_edsrd1.yzk.co.jp>
Date: Tue, 10 Feb 2009 13:36:37 +0900

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.

Craig McQueen


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-10 06:08:15 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.