Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6C70C4C6 for ; Mon, 3 Jun 2013 11:09:50 +0000 (UTC) Received: (qmail 35304 invoked by uid 500); 3 Jun 2013 11:09:50 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 35277 invoked by uid 500); 3 Jun 2013 11:09:50 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 35264 invoked by uid 99); 3 Jun 2013 11:09:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 11:09:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of philip.martin@wandisco.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 11:09:42 +0000 Received: by mail-wg0-f51.google.com with SMTP id b13so3027731wgh.6 for ; Mon, 03 Jun 2013 04:09:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=rrTP+KqQ4PZttWl1dVVWtoHtG3uxxjllD7briHCEObk=; b=IN54FOHuHWkrpLFRtJJAV2v6wA4nrfCoePugJlRSoAxE9wivOY4IsBe75Mb8lMPrTZ SUnwgTUAwAs7XTgGsxwLLPIvfaj/Ch2oJSLKqbwKUI6R1YuyJP3YEgMgHKvOlnlaMkVs wBulS+tH3ci1SCE+1FH4CoanxHmwozY5aiTIqzvfsyzbad47IsyOX4Gt4/+1ifeshjz3 CVqeUezbLn2guLRm6UzrU1W48SaUrGl0LyFiPTq8UjwWgYuF/gArUH9M8HFgs5gU11jW 6dxqC3zbCn0uDvBhZdlE9mc6zY0NiBLkgkG77MyQeT37dCdt44VefdXrNxUiA+n+Y910 UftQ== X-Received: by 10.180.90.43 with SMTP id bt11mr11937530wib.30.1370257761209; Mon, 03 Jun 2013 04:09:21 -0700 (PDT) Received: from localhost (cpc20-farn7-2-0-cust13.6-2.cable.virginmedia.com. [86.15.228.14]) by mx.google.com with ESMTPSA id b11sm22607165wiv.10.2013.06.03.04.09.19 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Jun 2013 04:09:20 -0700 (PDT) From: Philip Martin To: Branko =?utf-8?Q?=C4=8Cibej?= Cc: dev@subversion.apache.org Subject: Re: Separating deprecated code. References: <-3477464173635182231@unknownmsgid> <51AC63B3.9090607@apache.org> Date: Mon, 03 Jun 2013 12:09:18 +0100 In-Reply-To: <51AC63B3.9090607@apache.org> ("Branko =?utf-8?Q?=C4=8Cibej?= =?utf-8?Q?=22's?= message of "Mon, 03 Jun 2013 11:36:51 +0200") Message-ID: <8738szh2n5.fsf@ntlworld.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlf15rnchlOohe1lFpcndXeaxXMtkCdKdIYP1um73klZOdhSGBnlEaLD2rhLFyXHxY0TItz X-Virus-Checked: Checked by ClamAV on apache.org Branko =C4=8Cibej writes: > On 03.06.2013 11:30, Bert Huijben wrote: >> This function is also used from deprecated code in libsvn_cli=C3=ABnt and >> some binding code, unlike most other deprecated code... >> >> In some ways this code is 'a bit less deprecated' ;-) > > And anyway, only public APIs can be deprecated. Private APIs are either > kept or removed as necessary. We don't currently have any private deprecated APIs but that's just because we haven't yet needed any. If I move svn_wc__get_tree_conflict and svn_wc__status2_from_3 to libsvn_wc/deprecated.c the only problem with adding deprecated markers is where the testsuite calls one of the functions: Index: ../src/subversion/include/private/svn_wc_private.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ../src/subversion/include/private/svn_wc_private.h (revision 1488952) +++ ../src/subversion/include/private/svn_wc_private.h (working copy) @@ -292,6 +292,7 @@ * used to access @a victim_path. Allocate @a *tree_conflict in @a result= _pool, * use @a scratch_pool for temporary allocations. */ +SVN_DEPRECATED svn_error_t * svn_wc__get_tree_conflict(const svn_wc_conflict_description2_t **tree_conf= lict, svn_wc_context_t *wc_ctx, @@ -371,6 +372,7 @@ * Convert from svn_wc_status3_t to svn_wc_status2_t. * Allocate the result in RESULT_POOL. */ +SVN_DEPRECATED svn_error_t * svn_wc__status2_from_3(svn_wc_status2_t **status, const svn_wc_status3_t *old_status, Index: ../src/subversion/tests/libsvn_wc/conflict-data-test.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- ../src/subversion/tests/libsvn_wc/conflict-data-test.c (revision 1= 488952) +++ ../src/subversion/tests/libsvn_wc/conflict-data-test.c (working co= py) @@ -23,6 +23,8 @@ * conflict-data-test.c -- test the storage of tree conflict data */ =20 +#define SVN_DEPRECATED + #include #include #include @@ -339,6 +341,7 @@ { const svn_wc_conflict_description2_t *read_conflict; =20 + /* SVN_DEPRECATED API. */ SVN_ERR(svn_wc__get_tree_conflict(&read_conflict, sbox.wc_ctx, child1_abspath, pool, pool)); SVN_ERR(compare_conflict(read_conflict, conflict1)); --=20 Certified & Supported Apache Subversion Downloads: http://www.wandisco.com/subversion/download