如何从Team System中的合并工具中删除合并候选?

Not*_*Dan 34 tfs

在Team System中,我有一个在分支ServicePack\2.1(从Integration分支)中更改的文件,我不想将它合并到Integration.当我尝试合并所选的变更集时,如何从潜在的变更集列表中删除它?

Ric*_*erg 48

假设您要删除候选人#1234 ...

tf merge ServicePack\2.1 Integration /r /version:1234~1234 /discard
tf checkin
Run Code Online (Sandbox Code Playgroud)

  • 这可以从TFS Visual Studio 2010 UI中使用吗? (6认同)

小智 6

在Team Foundation Server 2010中,您可以使用以下语法从合并中放弃更改集:

tf merge "$/[Source Branch]" "$/[Target Branch]" /r /version:[Version] /discard
Run Code Online (Sandbox Code Playgroud)