问题
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