撤消货架集中存在的本地更改? [英] Undo local changes that exist in a shelveset?

查看:100
本文介绍了撤消货架集中存在的本地更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,当团队在修复一部分代码库时,我们必须在本地拥有一个代码架,以便我们继续工作.但是,在工作过程中,我需要搁置更改,例如进行代码审查.这并不是什么大问题,因为我可以先获取它们的架子,排除那些更改,进行更改,然后搁置它们.

Often times, while a team is repairing one part of the code base, we have to have a shelveset of theirs locally so that we can continue working. However, in the process of working I need to shelve my changes for a code review for example. This isn't too much of a problem because I can get their shelveset first, exclude those changes, make my changes, and shelve them.

但是,当他们签入更改后,对我来说,没有一种好方法(手动方式除外)简单地撤消其架子集(特别是该架子集中存在的文件).至少我还没有找到方法,所以这就是我要问的原因.

However, when they have checked in their changes there is no good way for me (except by hand) to simply undo their shelveset (the files that exist in that shelveset specifically). At least I haven't found a way, and so that's why I'm asking.

因此根据此处的文档,有tfpt中没有可以执行此操作的命令.此外,根据此处的文档tf中没有命令可以执行此操作.我深入研究了ShelvesetsUndo命令以及寻找可能的开关.

So based on the documentation here, there are no commands in tfpt that would do this. Further, based on the documentation here, there are no commands in tf that would do this either. I drilled into the Shelvesets and Undo commands as well looking for possible switches.

推荐答案

从Visual Studio的高级版开始,有一项功能可以挂起您的工作并在恢复工作后使用.您可以在此处

Starting in Premium version of Visual Studio there are a feature to Suspend your work and after Resume it. You can read the documentarion about it here

这篇关于撤消货架集中存在的本地更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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