How to block a changeset from merging in TFS?

后端 未结 2 1379
有刺的猬
有刺的猬 2021-02-05 12:12

In TFS 2010, how can one mark a changeset so that it cannot be merged from one branch to another? For example, so it doesn\'t show in the \"merge wizard\" in Visual Studio when

相关标签:
2条回答
  • 2021-02-05 12:49

    There's really not an analog in TFS for what you're trying to accomplish. Within TFS each subsequent changeset for a file is a delta off the previous changeset (and so on down to the base revision). Therefore, you can't really "skip" a changeset.

    I'm not sure exactly what you mean by "version increments" in this situation. Are you talking about file/assembly version, or something else?

    0 讨论(0)
  • 2021-02-05 12:50

    I think I found the answer to my question. The tf.exe command has a switch "/discard" which is documented as "Does not perform the merge operation, but updates the merge history to track that the merge occurred." This is exactly what I was looking for. I'll try it and post an update if this not what I'm expecting.

    http://msdn.microsoft.com/en-us/library/bd6dxhfy(v=vs.80).aspx

    0 讨论(0)
提交回复
热议问题