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

RE: Fwd: svn1.5 seems to fail simple merge-tracking scenario

From: Bob Archer <bob.archer_at_amsi.com>
Date: Fri, 20 Feb 2009 16:17:23 -0500

I see... so still two sides of the same coin. The commit on trunk which
is the results of the --reintegrate creates a revision that branch needs
to know about for further merges from trunk and/or future
--reintegrations.

So, lets say r100 was your commit as your example showed. I record-only
that revision in the branch. Now I make more changes in the branch and
never make any more changes on the commit. There is still no problem
doing a reintegrate again? Also, if I did a merge from trunk to the
branch there is nothing to do.

BOb

> -----Original Message-----
> From: Mark Phippard [mailto:markphip_at_gmail.com]
> Sent: Friday, February 20, 2009 4:10 PM
> To: Bob Archer
> Cc: Brian Erickson; users_at_subversion.tigris.org
> Subject: Re: Fwd: svn1.5 seems to fail simple merge-tracking scenario
>
> On Fri, Feb 20, 2009 at 4:06 PM, Bob Archer <Bob.Archer_at_amsi.com>
wrote:
> > I'll try my hand at writing something for the manual. Just want to
make
> > sure I fully understand this.
> >
> > So, the problem was never with running --reintegrate multiple times,
it
> > was doing a merge back into the branch from trunk? Branch would see
r100
> > (for example) as needing to be merged back into the branch which
already
> > contained all/a lot of those diffs?
>
> There are two potential problems.
>
> 1) You want to catch up with trunk again. Before you reintegrated you
> were doing:
>
> svn merge ^/trunk
>
> If you do that again, it is going to merge back the revision you
> reintegrated.
>
> 2) Suppose you just have made a few more changes and want to
> reintegrate those to branch.
>
> Well, internally, reintegrate figures the last revision from trunk
> that you synched to that branch (or created it from). If you just
> reintegrate again, then it will find the same revision it did the
> first time you used reintegrate. When it uses this revision to diff
> trunk at that revision and the current state of the branch, then the
> diff will include all of the changes from the first reintegrate.
>
> So doing svn merge --record-only fixes both of these problems.
>
> --
> Thanks
>
> Mark Phippard
> http://markphip.blogspot.com/

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1200568

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-20 22:18:12 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.