开发者

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

开发者 https://www.devze.com 2023-03-18 15:12 出处:网络
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.

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号