Axeva
Axeva

Reputation: 4737

Merge a Subversion Branch back in to the Trunk and retain Revisions

My subversion project has a branch that's been used to develop a major new release of the product. Now that the product has been launched, it's time to merge that branch back in to the Truck.

I'm using VisualSVN and TortoiseSVN to work with the SVN Server.

Based on the TortoiseSVN documentation, the process seems to be:

a. Check Out the Trunk to a Working Copy.

b. Run the Merge command to apply the Branch changes to the Working Copy. I've tried the Merge Dialog in TortoiseSVN and this attempt from the command line:

svn merge --reintegrate https://domain.com/project/branches/example

c. Commit the Working Copy back to the Trunk.

While this process will result in the Trunk having all of the latest code, it also means that I lose all of the revisions in the Branch. That's not acceptable. I want to be able to see the progress during development, and keep all of the check-in comments.

There must be a better way to accomplish this merge, right?

Upvotes: 4

Views: 1904

Answers (1)

RobertoP
RobertoP

Reputation: 637

Newer versions of SVN and Tortoise SVN (1.5+) have a merge tracking feature; this allows Tortoise SVN to display revisions from branches. In the Tortoise SVN Log Message window, if you check "Include merged revisions" you will be able to see all of the commits that were made to the branch.

Upvotes: 3

Related Questions