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

Re: svnversion on a file

From: David Glasser <glasser_at_mit.edu>
Date: 2006-08-06 01:01:01 CEST

On 8/5/06, Philip Martin <philip@codematters.co.uk> wrote:

> The general rule for wc code is to avoid doing checks before an
> operation and simply to do the operation and handle any error. In
> this case svn_wc_revision_status uses svn_wc_adm_open_anchor so it
> should handle versioned files. Can you avoid all the
> svn_io_check_path and svn_wc_check_wc calls and simply call
> svn_wc_revision_status, perhaps checking the error return if
> necessary?

To tell you the truth, I'm not sure what the idea behind all the logic
going into the "not versioned, and not exported" error is. That output
is not documented in "svnversion -h" or the svnbook. It looks to me
like it actually means "file not found" (or, before my patch, "file is
a directory"). Anyone know of a reason that it should stuck around
instead of turning into "file not found"?

--dave

-- 
David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 6 01:01:26 2006

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.