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

RE: Confused about how to merge changes from branch to trunk

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 25 Sep 2013 20:47:05 +0000

> > > Thanks for the reply.
> > >
> > > If i try doing merge a range of revisions FROM trunk and do not
> > > specify a range, it appears as though it wants to re-add every file
> > > in the project even though only 20ish files have changed.
> >
> > How does it "appear" that way? It should only be merging stuff since your
> copy. It might say something about from r1 to HEAD, but it will only do what is
> needed.
>
> I did several test merges. In doing a test merge where i don't specify the range
> of revision, it's showing every file in the project as 'added'. it's also showing
> tree conflicts.

As Ben said, did you use TSVN Copy/Branch to create your branch path? Or, did you just copy the trunk locally and then import/add it to the repo? If the latter you lost your ancestry info.

>
> >
> > >
> > > I select the revision range 155-158 it appears that it updated all
> > > the files that the other dev changed. So it looks like the first part of your
> suggestion worked.
> >
> > You might also want to do a merge again, record only. However, I expect it
> won't make any changes.
> >
> > >
> > > Now how do i get the changes in the branch back into trunk? Do i do
> > > a tree merge and select my branch as the FROM, revision 160 (thats
> > > the revision just after i committed the updated files from the merge
> > > FROM trunk) and the head revision for trunk as the TO ?
> >
> > Um.. it depends on your TSVN version which you didn't indicate. You shouldn't
> do a tree merge... just a merge a range (1.8) or reintegration merge (1.7).
>
> using 1.8.2
>
> So after i've gotten the changes from trunk into my branch and i want to push
> everything back to trunk, i select merge range - and what do i put in the URL to
> merge from? I already merged from trunk once. And i don't see how i can
> merge from my branch since that would just be merging the branch into itself.
> It appears as though merging a range of revisions just merges them into my
> working copy.
>
> Do i have to checkout a copy of the trunk? or switch my working copy over to
> trunk?

Yes, you have to have a working copy of the trunk, since that will be your merge target. You right click on your trunk working copy, and merge selecting the branch as the "FROM Url".

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3065262

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-09-25 22:47:16 CEST

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

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