Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8752E10B40 for ; Tue, 4 Jun 2013 16:43:29 +0000 (UTC) Received: (qmail 25804 invoked by uid 500); 4 Jun 2013 16:43:27 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 25401 invoked by uid 500); 4 Jun 2013 16:43:27 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 25307 invoked by uid 99); 4 Jun 2013 16:43:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 16:43:26 +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: local policy) Received: from [217.140.74.2] (HELO continuum.iocl.org) (217.140.74.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 16:43:16 +0000 Received: (from krey@localhost) by continuum.iocl.org (8.11.3/8.9.3) id r54Gglm30844; Tue, 4 Jun 2013 18:42:47 +0200 Date: Tue, 4 Jun 2013 18:42:47 +0200 From: Andreas Krey To: "Saffer, Simon" Cc: "C. Michael Pilato" , "users@subversion.apache.org" Subject: Re: Lines duplicated in dest. file when merging back to trunk Message-ID: <20130604164247.GI22784@inner.h.apk.li> References: <86FB15D93A38CB459D7A270423145743029A9A@SE-EX028.groupinfra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86FB15D93A38CB459D7A270423145743029A9A@SE-EX028.groupinfra.com> User-Agent: Mutt/1.4.2.1i X-message-flag: What did you expect to see here? X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 04 Jun 2013 14:09:35 +0000, Saffer, Simon wrote: ... > > A > B > > some change > > some change > > C > D > > We get no merge conflict, but the text is copied twice into the file on trunk. So, you add one line on trunk, and a different line (and different whitespace mieans 'different') on the branch, and you expect the VCS to drop one of them? It is obvious that both changes should be taken into the merge, arguably (and usually) unless they are exactly the same, so SVN does nothing wrong here. The more interesting part is why you don't even get a conflict. Apparently the exact place you do the modification in are also far enough apart from each other so that the merge algorithm can take them as independent chunks that affect disjunct parts of the original file. You should really go and cherry-pick such changes from one branch to the other. Andreas -- "Totally trivial. Famous last words." From: Linus Torvalds Date: Fri, 22 Jan 2010 07:29:21 -0800