In TFS, how do I do a baseless merge on specific changesets?

前端 未结 2 1271
失恋的感觉
失恋的感觉 2020-12-13 01:57

As with most things in TFS you get more than you bargained for. In this case I am seeing more file changes during the merge than I was expecting.

I have 2 child bran

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 02:22

    I had to use tfs paths for the two branches. Steps were: add both branches to the desired workspace; get latest; open a Windows powershell in the target folder. Get tfs paths

    >tf workspaces /format:detailed 
    >tf workfold
    

    Then use $paths for the branches. Same changeset number between the tilde ment baseless merge for one changeset.

    >tf merge /baseless /recursive /version:C999~C999 "$/MyRepo/Current" "$/MyRepo/Development"
    

    More here -- http://blogs.msdn.com/b/bharry/archive/2011/08/31/merge-enhancements-in-tfs-11.aspx

提交回复
热议问题