开发者

Rolling back a merge in TFS2008 with tfpt.exe

I need to roll back a merge operation in TFS2008. The branch will need to be merged at a later date. I know I can use the tfpt.exe rollback operation on the trunk to restore the files modified by the 开发者_StackOverflow中文版merge, but rollback doesn't modify the merge information so future merges from the branch into the trunk won't restore the changes undone by the rollback. Also, merges from the trunk into the branch will risk overwriting changes in the branch.

I've probably left out quite a bit of necessary information, so I'll update the question as needed.

What is the best way to undo the merge, and still be able to merge all changes in at a later date?

Thanks.


I just tried this doing it manually and when you attempt to merge after after having checked out an older version and then checking in the older version the file is still essentially flagged as already merged. I see the same exact problem when doing it without tfpt- pretty interesting.

So I took a look at the docs and it looks like what you are going to want to do is use /force. I am guessing if you do a tfpt rollback and then run tf merge it will work. If not, try manually rolling back and then running tf merge /force.

/force
Ignores the merge history and merges the specified changes from the source into the destination, even if some or all these changes have been merged before.

Hope that helps.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜