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

Re: SVN merge attempting to reintegrate on a merge to a branch

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 16 Sep 2013 16:33:41 +0200

On Mon, Sep 16, 2013 at 12:06:46PM +0000, Goor, Stefan wrote:
> I think the fact the error related to doing a reintegrate merge is also
> wrong. Given that the merge was from a trunk project (that the branch was
> created from) to the the branch, should it not have been attempting a
> regular merge? It is my understanding that a reintegrate merge is done
> (automatically since 1.8) when bringing a branch back into the project it
> was created from.

It's a little more complex than that.

There is no reason to be surprised if the new 'complete merge' in
Subversion 1.8 attempts to reintegrate the trunk into a branch.
Whether a sync or reintegrate merge is performed depends on prior
merge history. A reintegrate merge is performed whenever a merge's
direction differs from the direction of the previous merge. A sync
merge is performed whenever the merge direction stays the same.

A simple example:

Create branch B from trunk.

Merges performed, in sequence: Merge type selected by SVN:

Merge from trunk to B sync merge
Merge from B to trunk reintegrate merge
Merge from B to trunk sync merge
Merge from B to trunk sync merge
Merge from B to trunk sync merge
Merge from trunk to B reintegrate merge
Merge from trunk to B sync merge
Merge from trunk to B sync merge
Merge from B to trunk reintegrate merge
Merge from B to trunk sync merge

Can you see the pattern?
Received on 2013-09-16 16:34:21 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.