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 4D2E6CFE2 for ; Mon, 3 Jun 2013 09:31:08 +0000 (UTC) Received: (qmail 44595 invoked by uid 500); 3 Jun 2013 09:31:08 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 44373 invoked by uid 500); 3 Jun 2013 09:31:07 -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 44366 invoked by uid 99); 3 Jun 2013 09:31:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 09:31:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.192.172] (HELO mail-pd0-f172.google.com) (209.85.192.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 09:31:03 +0000 Received: by mail-pd0-f172.google.com with SMTP id t10so1872138pdi.3 for ; Mon, 03 Jun 2013 02:30:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=G1PMGZ2AwurAs3OehdpPcYKXaZbF6fbvPsElJUUVCxA=; b=OiQKgUBND4HmAoPotAd/QSqJ8B+bSRUkyxZVr7q82oMSgEXKrtebX2TrOQwG7MD5Ne jZNLxKbjuxxsLJdHtuP28JXR3NkW4v75aKi9DjIeyPQPsV2hA0riVOc+dtlXM42qhuAA UXRgK+9GvnpAmXiqKVB9r/J1Als4c64Va4cdbTgGrPdb4Y97xEGTXhLoe8APheN6IfGY HwI5UMi2sSnoc1lWcg1UnheQ60rcQU3nNmkBtU/+cI5BFruVtZPE2jjyg+aqtOdgE1Ff wdYWiGvnM4MZX/wL13CZ+yXXwJVbRA6l0AcspUDlDjTzWznzMdw0UPxmlJLbGU+JxHGD GGfA== X-Received: by 10.68.160.132 with SMTP id xk4mr23044100pbb.37.1370251821355; Mon, 03 Jun 2013 02:30:21 -0700 (PDT) MIME-Version: 1.0 From: Bert Huijben Date: Mon, 3 Jun 2013 02:30:21 -0700 Message-ID: <-3477464173635182231@unknownmsgid> Subject: RE: Separating deprecated code. To: Philip Martin , Barry Scott Cc: Subversion Development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkRgX5Hj8x6Wq6ceHbIgI1Ba2fqxzAmrQIjR0D7Lud2Kgy0IyzQnHLmRL3XmqyQ3hYFiohq X-Virus-Checked: Checked by ClamAV on apache.org This function is also used from deprecated code in libsvn_cli=EBnt and some binding code, unlike most other deprecated code... In some ways this code is 'a bit less deprecated' ;-) Bert From: Philip Martin Sent: 03/06/2013 10:33 To: Barry Scott Cc: Subversion Development Subject: Separating deprecated code. Philip Martin writes: > Barry Scott writes: > >> Index: /Users/barry/wc/svn/svn-1.8.x/subversion/libsvn_wc/tree_conflicts= .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 >> --- /Users/barry/wc/svn/svn-1.8.x/subversion/libsvn_wc/tree_conflicts.c = (revision 1484244) >> +++ /Users/barry/wc/svn/svn-1.8.x/subversion/libsvn_wc/tree_conflicts.c = (working copy) >> @@ -506,6 +506,7 @@ >> return SVN_NO_ERROR; >> } >> } >> + *tree_conflict =3D NULL; >> return SVN_NO_ERROR; >> } > > Committed to trunk and nominated for backport. Thanks! This is a patch to svn_wc__get_tree_conflict which is only called from util.c:svn_wc__status2_from_3 which is itself only called in the main code from libsvn_wc/deprecated.c and libsvn_client/deprecated.c. That makes both svn_wc__get_tree_conflict and svn_wc__status2_from_3 only necessary for support of the deprecated API. Should we move the code to deprecated.c? Should we add DEPRECATED markings? conflict-data-test.c also calls svn_wc__get_tree_conflict which makes it an explicit test of the deprecated code. If we mark the functions DEPRECATED do we explicitly disable DEPRECATED warnings in the test file? --=20 Certified & Supported Apache Subversion Downloads: http://www.wandisco.com/subversion/download