在特定更改集检查 TFS [英] check out TFS at a specific change set

查看:26
本文介绍了在特定更改集检查 TFS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 TFS 和 VS 2012,但我的项目处于损坏状态,我不知道为什么.当我知道它可以工作时,我想回到我的解决方案的先前版本并对该工作版本进行更改.但是,当我选择检出特定的变更集时,在我看来它只是更改了该变更集中已更改的文件.当我使用 git 并签出修订版时,我的代码看起来与该修订版中的代码完全一样.该修订版中尚不存在的文件被删除,确实存在的文件具有该修订版中的内容,等等.但我似乎无法在 TFS 中做同样的事情.我无法弄清楚如何在签入特定变更集时将所有文件(以及仅文件)置于它们存在的状态.我是否遗漏了什么?任何帮助真的很感激.

I'm using TFS and VS 2012 and my project is in a broken state and I can't figure out why. I'd like to go back to a previous version of my solution when I know it worked and make changes on that working version. However, when I choose to check out a specific changeset, it seems to me like it's only changing the files that were changed in that changeset. When I use git and check out a revision, my code looks exactly like it did at that revision. Files that didn't yet exist at that revision are removed, files that did exist have contents as they were at that revision, etc. But I can't seem to do the same in TFS. I can't figure out how to get all of the files (and only the files) in the state that they existed when a particular changeset was checked in. Am I missing something? Any help REALLY appreciated.

推荐答案

在源代码管理中右键单击解决方案或文件夹时尝试使用高级选项:

Try using the Advanced option when you right click on a solution or folder in Source Control:

然后,当对话框出现时,选中这两个复选框,以便通过从 ddl 中选择 Changeset 并输入您想要的变更集,用您想要的特定版本覆盖您拥有的版本...

Then when the dialog appears, check both check boxes so the version you have is overwritten with the specific version you want by selecting Changeset from the ddl and entering the changeset you are after...

这应该会用特定版本覆盖现有的解决方案文件.

This should overwrite the existing solution files with the specific version.

如果在现有文件之上执行此操作时遇到问题,请先删除本地计算机上的源,然后再获取特定版本.

If you have trouble doing it over top of existing files, delete the source on your local machine first and get the specific version after that.

这篇关于在特定更改集检查 TFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆