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

Re: weird merge

From: Tyler Roscoe <tyler_at_cryptio.net>
Date: Thu, 25 Mar 2010 08:51:01 -0700

On Thu, Mar 25, 2010 at 11:09:49AM +0100, Xavier Noria wrote:
> That is, after you create branch b from trunk, you work on b,
> occasionally you sync with trunk this way:
>
> cd b
> svn merge ^/trunk .
>
> and when you are done in b finally
>
> cd trunk
> svn merge --reintegrate ^/branches/b .
>
> First, that is correct right?

Yes.

> svn merge ^/trunk .
>
> instead of being silent says
>
> --- Merging r2 through r2909 into '.'
>
> and then a ton of tree conflicts appear. But that is kind of weird
> because this project is at revision ~28000, why a range from 2 to
> 2909?

For some reason, your branch doesn't know that it already has revisions
2 through 2909, so svn attempts to merge those revisions in, leading
(apparently) to tree conflicts.

You should look at your branch's ancestry to make sure those revisions
are not needed. If they're not, you can use a --record-only merge to
make the branch think it has those revisions. Subsequent merges from
trunk should then skip over those revisions and merge only what you
want.

hth,
tyler
Received on 2010-03-25 16:51:31 CET

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.