如何在Visual Studio TFS中回滚? [英] How to rollback in Visual Studio TFS?

查看:382
本文介绍了如何在Visual Studio TFS中回滚?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理使用VSTS 2008的大型项目的一个子模块.

I'm working on one sub-module of a large project for which is use VSTS 2008.

我需要将模块回滚到早期版本(之前大约4个签入).我尝试在Visual Studio UI中执行此操作,最后意识到没有回滚的选项.

I have a need to rollback the module to an earlier version (about 4 check-ins previous). I tried to do this in the Visual Studio UI, and finally realized there is no option to rollback.

经过研究,我确定有一个电动工具下载,该下载旨在支持通过命令行工具进行回滚.但是,实际上几乎没有任何文档.

After some research, I determined there is a power tools download that purports to support rollback via a command-line tool. However, there appears to be virtually no documentation for it.

谁能一步一步描述如何在VS2008中回滚到以前的版本? (使用电动工具或其他工具.)

Can anyone describe step by step how to rollback to a previous version in VS2008? (Using Power Tools or otherwise).

奖金问题-有人知道我们是否可以在VS2010中获得更强大的回滚支持吗?

Bonus question--anyone know if we might get more robust rollback support in VS2010?

推荐答案

在Source Control Explorer中的文件夹上单击鼠标右键.选择获取特定版本.选择要获取的版本(通过变更集,日期,标签等).

Right-click on the folder in Source Control Explorer. Choose Get Specific Version. Choose the version that you want to get (by changeset, date, label, etc).

此时,您的本地版本将是您想要的版本.签出更改的文件,然后将其签回.这将弹出合并向导,并且可能会抱怨服务器的版本比您新.遍历向导并按照所需的方式合并文件(选项之一是放弃服务器更改,这听起来像是您想要的).在此过程结束时,它可能会告诉您由于合并过程(或类似性质的文件)而没有签入任何文件,只需单击确定",然后再次签入.这应该可以满足您的需求.

At this point your local version will be the version that you want. Check out the changed files and then check them back in. This will bring up the merge wizard and it will probably be complaining about how the server has a newer version than you do. Go through the wizard and merge the files the way you want them (one of the options is to discard the server changes, which is what it sounds like you want). At the end of this process, it may tell you that no files were checked in due to the merge process (or something of that nature), just hit OK and then check in again. This should accomplish what you need.

这篇关于如何在Visual Studio TFS中回滚?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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