subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bert Huijben" <b...@qqmail.nl>
Subject RE: svn commit: r1329563 - /subversion/trunk/subversion/libsvn_fs/editor.c
Date Wed, 25 Apr 2012 11:08:53 GMT


> -----Original Message-----
> From: Daniel Shahaf [mailto:danielsh@elego.de]
> Sent: woensdag 25 april 2012 13:04
> To: dev@subversion.apache.org
> Cc: commits@subversion.apache.org; Greg Stein
> Subject: Re: svn commit: r1329563 -
> /subversion/trunk/subversion/libsvn_fs/editor.c
> 
> gstein@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


Mime
View raw message