Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 34326200AF6 for ; Sat, 11 Jun 2016 20:03:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 32CA3160A34; Sat, 11 Jun 2016 18:03:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7E388160A2B for ; Sat, 11 Jun 2016 20:03:05 +0200 (CEST) Received: (qmail 71911 invoked by uid 500); 11 Jun 2016 18:03:04 -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 71896 invoked by uid 99); 11 Jun 2016 18:03:04 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2016 18:03:04 +0000 Received: from zulu.local (unknown [77.234.149.122]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id DFE621A0178 for ; Sat, 11 Jun 2016 18:03:03 +0000 (UTC) Subject: Re: svn:mergeinfo updated for unchanged files/folders at merge of a feature branch to trunk - is this desirable? To: users@subversion.apache.org References: From: =?UTF-8?Q?Branko_=c4=8cibej?= Organization: The Apache Software Foundation Message-ID: <811abbf9-a439-bf55-d40b-fe712803209c@apache.org> Date: Sat, 11 Jun 2016 20:03:32 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit archived-at: Sat, 11 Jun 2016 18:03:06 -0000 On 11.06.2016 19:48, Olof wrote: > Hello, > > Perhaps someone here can bring some light to this topic. > > We use the common technique with a trunk and feature branches. A > feature branch is created by branching trunk. The feature branch is > continually kept up-to-date with trunk by merging changes from trunk > to feature branch (rebase). When development in the feature branch is > finished the content is merged back to trunk. > > When the feature branch is merged back to trunk all changes to the > feature branch, including those created by rebase, is recorded in > svn:mergeinfo property of the affected file/folder in trunk. One > consequence of this is that files and folders which have not been > updated in the feature branch (except by rebase) is marked as changed > (property only) in trunk when the feature branch is merged back to trunk. > > The trunk log shows that these folders/files where changed when the > feature branch was merged back to trunk despite that no folder/file > content has been changed in the feature branch relative to trunk. This > is quite confusing for our users because TortoiseSVN shows that a lot > of folders/files they haven't changed have been updated in the merge. > In addition a lot of unchanged files will be shown as updated at next > SVN update command. Why is this necessary? Is it a desirable behavior? > Shouldn't SVN be able to figure our what's actually changed in the > feature branch relative to trunk and record only this mergeinfo? The real question is, where do all that mergeinfo properties come from. In typical usage, you'd have an svn:mergeinfo property on the root of each branch (including trunk). If mergeinfo properties are defined beneath the root, the most likely reason is that someone merged a subtree of the branch instead of the whole branch (hence, we call this subtree mergeinfo). During a merge, all subtree mergeinfo must be updated to reflect the merge results, regardless of whether there were any changes in the subtree. I'm also a bit confused about your wording (re: "folders/files"): do you actually have mergeinfo on files? -- Brane