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

svn_client_url_from_path

From: Arild Fines <arild.fines_at_broadpark.no>
Date: 2003-10-02 19:14:53 CEST

The docs for svn_client_url_from_path state that "If path_or_url is a
unversioned (has no entry), set *url to null. ". However, when you run this
function on an unversioned path, it *also* returns SVN_ERR_WC_NOT_DIRECTORY
or SVN_ERR_WC_NOT_FILE.

Is this behavior intentional? If so, what is the logic behind it? If running
this function on an unversioned path is an acceptable use of it, as
indicated by the documentation, an error code does not seem appropriate.
NSvn currently throws an exception for all non-zero return values. Is this
an unreasonable way to do it?

--
Arild
AnkhSVN: http://ankhsvn.tigris.org
Blog: http://ankhsvn.com/blog
RSS: http://ankhsvn.com/blog/Rss.aspx
King Crimson lives in different bodies at different times and the particular
form which the group takes changes. When music appears, which only King
Crimson can play then, sooner or later, King Crimson appears to play the
music
-Robert Fripp
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 2 19:15:37 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.