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

Re: branch should become new trunk

From: Werner F. Bruhin <werner.bruhin_at_free.fr>
Date: Tue, 12 Jan 2010 17:46:48 +0100

Bob Archer wrote:
>> I am confused on how to merge my "branch" back to the "trunk".
>>
>> I looked at some of the posts on the subject here and also at the
>> svn
>> book, but I am still not sure how to go about it.
>>
>> I created a branch when I was a revision 340, all the changes in
>> "trunk"
>> which I made in the mean time and were of interest from "branch"
>> have
>> been merged from "trunk" to "branch". In other word the state of
>> the
>> code in "branch" is to become the "final" result in "trunk".
>>
>
> Well, reinterate can only be used if you have merged ALL of trunk into branch. You can't cherrypick stuff from trunk into branch and then --reintegrate the branch. It's not gonna allow it or work.
>
>
>> I am now at stage were "branch" should become the "new trunk", so I
>> thought I should use "reintegrate branch", i.e. from URL = branch,
>> working copy = trunk, but this gives me an error "Error:
>> Reintegrate can
>> only be used if revisions 340 through 802 were previously ...."
>> when I
>> do a "test merge".
>>
>
> If this is the result you want and you don't want to merge everything from trunk to branch you can just delete the trunk and then copy the branch to trunk. This will get you where you want to be.
>
Copy how? Delete all in my trunk work copy, copy from branch work copy
to trunk work copy and commit - wouldn't that mess up SVN?

I kept on reading the svnbook
"http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.1" and
wonder if "merging a Whole Branch to Another" wouldn't be getting what I
want, even so I have to resolve what ever conflicts show up (which I
hoped would somehow be done automagically) - basically always take the
"branch" changes.

Werner

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-01-12 17:47:25 CET

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.