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

Re: [PATCH] Fix for issue 3620 - revert command

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 3 Nov 2010 16:25:43 +0100

On Wed, Nov 03, 2010 at 04:22:57PM +0100, Stefan Sperling wrote:
> On Wed, Nov 03, 2010 at 03:04:25PM +0000, Julian Foad wrote:
> > -0 on duplicating this check inside libsvn_client.
>
> The rationale is that our libraries should reject invalid input
> to prevent third party clients which pass invalid input from crashing.
> Clients passing a canonicalised path instead of a URL are not violating
> API rules at the syntactic level so they shouldn't just crash.
>
> And there's no reason to have our own client pass invalid input either.

Oh, and the SVN_ERR_CL_ARG_PARSING_ERROR error code causes our
client to print an informative line such as "Try svn help".
So there's added value over the SVN_ERR_ILLEGAL_TARGET code that
our libraries are throwing.

I think the libraries shouldn't throw SVN_ERR_CL_* errors.

Stefar
Received on 2010-11-03 16:26:36 CET

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