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

RE: svn commit: r1329563 - /subversion/trunk/subversion/libsvn_fs/editor.c

From: Bert Huijben <bert_at_qqmail.nl>
Date: Wed, 25 Apr 2012 13:08:53 +0200

> -----Original Message-----
> From: Daniel Shahaf [mailto:danielsh_at_elego.de]
> Sent: woensdag 25 april 2012 13:04
> To: dev_at_subversion.apache.org
> Cc: commits_at_subversion.apache.org; Greg Stein
> Subject: Re: svn commit: r1329563 -
> /subversion/trunk/subversion/libsvn_fs/editor.c
>
> gstein_at_apache.org wrote on Tue, Apr 24, 2012 at 06:07:18 -0000:
> > @@ -94,9 +210,11 @@ add_absent_cb(void *baton,
> > svn_revnum_t replaces_rev,
> > apr_pool_t *scratch_pool)
> > {
> > - struct edit_baton *eb = baton;
> > -
> > - UNUSED(eb); SVN__NOT_IMPLEMENTED();
> > + /* This is a programming error. Code should not attempt to create
these
> > + kinds of nodes within the FS. */
> > + return svn_error_create(
> > + SVN_ERR_UNSUPPORTED_FEATURE, NULL,
> > + N_("The filesystem does not support 'absent' nodes"));
> > }
>
> Should be _() not N_()
>
> Also: change the error text and code? The use of "unsupported" sounds
> like a format upgrade would fix it. How about one of those "is not
> allowed, and could indicate a bug in your client" errors?
>
> SVN_ERR_EDITOR_INVALID_OPERATION maybe.

Yeas, something in SVN_ERR_FS or SVN_ERR_EDITOR would be much easier to
diagnose for api users than this error code that is usually used in
libsvn_client (and libsvn_ra)

        Bert
Received on 2012-04-25 13:09:34 CEST

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.