Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7ADF9573 for ; Wed, 25 Apr 2012 11:09:30 +0000 (UTC) Received: (qmail 53287 invoked by uid 500); 25 Apr 2012 11:09:30 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 53262 invoked by uid 500); 25 Apr 2012 11:09:30 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 53237 invoked by uid 99); 25 Apr 2012 11:09:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 11:09:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.83.43] (HELO mail-ee0-f43.google.com) (74.125.83.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 11:09:20 +0000 Received: by eekc13 with SMTP id c13so330908eek.16 for ; Wed, 25 Apr 2012 04:08:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language:x-gm-message-state; bh=gzq88C5PE+fIMeOg2biAwyA0XgFp16wYqhTdyw0FY8U=; b=pi3rDK9nceBtGveFHo1FbOlKbE2n1MpFmEzrfei+1MaTIwzR28qHd19o0A98j0EGMa Af9gbt6AmZPPsFGYch2++5euzcU98fUKHZKwnAcjWLOdkas/aN9NkzHlMWAJSsVWfAB3 UjY0FgVrzJp1uSUCjIzRaWYH8meFtjLHlwq3Wxf6i8Pi2zSiJI/rsyDQDkmMKY9ADx+y FF3CusnSkPJjEF/hO0a4o3IfV+umMJ2fHZTJb/gDoOUu1vLpBAkuCm3hjAIUZHmaiey7 cNajAN2xnnL2v29jn4xDd3tDSTdC3OXBBGHRqC7l4ZZnJCZts71V0fwOhJiUEKwUMFEH ZtnA== Received: by 10.14.101.67 with SMTP id a43mr371733eeg.39.1335352139405; Wed, 25 Apr 2012 04:08:59 -0700 (PDT) Received: from i72600 (ip92-186-173-82.adsl2.static.versatel.nl. [82.173.186.92]) by mx.google.com with ESMTPS id m55sm102069081eei.1.2012.04.25.04.08.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Apr 2012 04:08:57 -0700 (PDT) From: "Bert Huijben" To: "'Daniel Shahaf'" , Cc: , "'Greg Stein'" References: <20120424060718.846F62388865@eris.apache.org> <20120425110341.GN10805@lp-shahaf.local> In-Reply-To: <20120425110341.GN10805@lp-shahaf.local> Subject: RE: svn commit: r1329563 - /subversion/trunk/subversion/libsvn_fs/editor.c Date: Wed, 25 Apr 2012 13:08:53 +0200 Message-ID: <005201cd22d3$cdf287c0$69d79740$@qqmail.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHW7XdQgT1tkzqGXHovLWFSCKLUpgKL32JrloNtSuA= Content-Language: nl X-Gm-Message-State: ALoCoQlCtsvA/2rDcSAsunpHJ3q/toiReh0B2OodJs4g3qZbqgXurHa1UXmPevLB9CmNoflEZtIw > -----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