[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Spurious svn:mergeinfo updated on random, untouched files on minimalistic merge?!

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Tue, 30 Mar 2010 12:20:35 +0200

On Tue, Mar 30, 2010 at 11:47 AM, Ben <tebulin_at_googlemail.com> wrote:
> Hi! We recently upggraded our svn server to 1.6.5 to enable the usage of the
> svn merge tracking capabilities but failed to use it in more than one project
> due unwanted properties changes set on unchanged files.
>
> This makes it very hard to keep track of the real changes vs. svn internal
> changes.
>
> We always merge the root directories so I'd expect svn:mergeinfo properties to
> occur only on the root directory node. In fact we receive property changes on
> files I'd be totally unaware why that one should differ!
>
> Here is my problem in a simple use case:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1) I created a /branches/1.1.x from /trunk in svn rev #3101
>
> 2) We continued developing on /trunk
>
> 3) Just to tryout the merge tracking feature I merged
>   /branches/1.1.x  back to  /trunk
>
>   Actually the branch does contain NO COMMIT at all!
>
>
> Expected result:
> ~~~~~~~~~~~~~~~~
> I'd expect, that I receive exactly one filechange: A svn:mergeinfo
> property update on /trunk which indicates my merge 3101-3110.
>
>
> Actual results:
> ~~~~~~~~~~~~~~~
> Actually the svn:mergeinfo of many (random) file are updated and
> I have absolutley no clue why!
>
> Here is one example:
>
>    <empty svn:mergeinfo>
> gets to
>
> /branches/1.1.x/views-xlsexport/src/test/java/setup/export/ExportTest.java:310
> 2-3110
>
> /branches/wss-850_devel/views-xlsexport/src/test/java/setup/export/ExportTest.
> java:2622-2680
>
>
> WTF? That branch "wss-850_devel" even no longer exists!
>
>
> On the parent directories "setup" the situation is similar:
>
>    /branches/1.1.x/views-xlsexport/src/main/java/setup:3101-3113*
>    /branches/wss-850_devel/views-xlsexport/src/main/java/setup:2622-2680
>    /trunk/views-xlsexport/src/main/java/setup:2-2590*
>
> I checked out and ressureceted that expunged branch wss-850_devel
> to check if svn:mergeinfo properties have been defined there.
> Negative.
>
> Questions:
> ~~~~~~~~~~
> So is anybody able to give us a hint or explain what happens and/or what we do
> wrong?
> Or event better: Can anybody gives hints on the technical backgrounds?
>
> - Why do unrelated branches appear in my mergeinfo
> - Do I have wrong expectations that only one file should change?
> - Are svn:merginfos repository global or locally to a revision?
> - What does the /trunk related entry mean?
>  I merged the dir to myself? Huh!
> - What does the asterix mean (3101-3113*)
>
> I very appreciate any hint or link to more detailled background information

I don't have time right now to analyze and explain your particular
situation, but as for a link to detailed background information, you
might want to read this article:
http://www.collab.net/community/subversion/articles/merge-info.html

Also, if I understood correctly, improvements are being made in this
area for svn 1.7 (for starters, in 1.7 only subtrees affected by the
merge will have their mergeinfo updated). But it's too early to tell
how that will work out. Svn 1.7 is still at least a couple of months
away...

-- 
Johan
Received on 2010-03-30 12:24:01 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.