Undo local changes that exist in a shelveset?

核能气质少年 提交于 2019-12-12 02:48:57

问题


Problem

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.

Research

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.


回答1:


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



来源:https://stackoverflow.com/questions/24061664/undo-local-changes-that-exist-in-a-shelveset

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!