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 E4A67EE57 for ; Mon, 4 Feb 2013 19:02:35 +0000 (UTC) Received: (qmail 73303 invoked by uid 500); 4 Feb 2013 19:02:35 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 73263 invoked by uid 500); 4 Feb 2013 19:02:35 -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 73256 invoked by uid 99); 4 Feb 2013 19:02:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 19:02:35 +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 (athena.apache.org: local policy) Received: from [192.109.42.8] (HELO einhorn.in-berlin.de) (192.109.42.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 19:02:26 +0000 X-Envelope-From: stsp@stsp.name Received: from byrne.stsp.name (byrne.stsp.name [217.197.84.41]) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id r14J1ClF013617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 4 Feb 2013 20:01:52 +0100 Received: from byrne.stsp.name (stsp@localhost [127.0.0.1]) by byrne.stsp.name (8.14.6/8.14.5) with ESMTP id r14J0tMM016813; Mon, 4 Feb 2013 20:00:57 +0100 (CET) Received: (from stsp@localhost) by byrne.stsp.name (8.14.6/8.14.5/Submit) id r14J0qcb016321; Mon, 4 Feb 2013 20:00:52 +0100 (CET) Date: Mon, 4 Feb 2013 20:00:51 +0100 From: Stefan Sperling To: Philip Martin Cc: dev@subversion.apache.org Subject: Re: svn commit: r1442177 - /subversion/trunk/subversion/tests/libsvn_wc/op-depth-test.c Message-ID: <20130204190051.GG32109@byrne.stsp.name> Mail-Followup-To: Philip Martin , dev@subversion.apache.org References: <20130204170016.A1F142388ABA@eris.apache.org> <87sj5cuh5j.fsf@ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87sj5cuh5j.fsf@ntlworld.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Feb 04, 2013 at 05:23:52PM +0000, Philip Martin wrote: > The test reaches a state with a delete-edit tree-conflict on X/B/C as a > result of the update following some of the moves. This conflict has to > be resolved to state 'working' which will remove the tree-conflict on > X/B/C and raise a move-edit tree-conflict on X/B/C/D/E. Resolving that > new move-edit tree-conflict to state 'mine-conflict' will update E2 and > allow the test to pass. However when the resolver is invoked on X/B/C > it automatically proceeds to resolve the new tree-conflict on X/B/C/D/E > and that causes the test to fail. > > Having the resolver raise new tree-conflicts is new behaviour. Having > the resolver code use the status walker is also new behaviour. To make > this work I need the resolver to avoid resolving the newly raised > tree-conflict but I'm not sure how best to do this. Sometimes resolving > newly raised tree-conflicts is helpful to the user. As far as I can see the only problem here is that you'd like to resolve the conflict on 'X/B/C' to 'choose merged', but because the test ends up passing depth infinity to svn_wc__resolve_conflicts() it also resolves 'X/B/C/D/E' to 'choose_merged', while you want to resolve that node to 'mine_conflict' instead. I haven't tried, but you could probably change the test to pass a depth != infinity to svn_wc__resolve_conflicts() when resolving on 'X/B/C'. Would that help?