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

Re: [PATCH] (alternate fix for issue 900)

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-09-15 18:32:09 CEST

mark benedetto king <bking@Inquira.Com> writes:

> On Sat, Sep 14, 2002 at 11:02:37AM +0100, Philip Martin wrote:
> > svn_repos_open doesn't distinguish between a missing format file and a
> > format file it cannot read, both cause the function to return
> > SVN_ERR_REPOS_UNSUPPORTED_VERSION. svn_ra_local__split_URL wants to
> > distinguish between these two cases. It may be better to change
> > svn_repos_open, document the behaviour, and then use that in
> > svn_ra_local__split_URL.
> >
>
> Let's say we want to (break the API and) modify svn_repos_open to
> look like:

Breaking the API is not really a problem at the moment. However I
really meant changing svn_repos_open so that it returned more useful
errors. I think the reason it returns REPOS_UNSUPPORTED_VERSION in
the case where there is no format file is so that it can support old
repositories which didn't have such a file. I was questioning whether
this was the best thing to do. It may be better if it simply passed
through the ENOENT error from APR, or perhaps returned some sort of
NO_REPOS error.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 15 18:32:51 2002

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