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

Re: Fwd: [Issue 2399] svn_ra_stat returning error for non-existent path instead of NULL dirent_t*

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-09-13 10:49:07 CEST

On Tue, 13 Sep 2005, William Ferguson wrote:

> > An alternative that springs to my mind is to just
> > catch this error in your
> > application and handle it.
>
> Sure. And that's the hack I am using at the moment.
> But it means that for each call to svn_ra_stat I now
> need to check the result and try to guess whether
>
> a) there really is a problem trying to service the
> request.
> b) the node just doesn't exist.
>
Why can't you just check for the specific error?

I agree that this is orthogonal to the semantic discussion about when a
path is considered not to exist, but I don't understand why you can't get
what you want today.

FWIW, I think that both interpertations of what "does not exist" means
could be reasonable. It's just that we've chosen one of them.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 13 10:50:04 2005

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.