有没有办法清除我所有的 TFS 待处理更改?
如果我取消搁置搁置集,Visual Studio 中的“待处理更改”工具窗口将恢复搁置时设置的文件、提交注释和关联工作项。
如果我改变主意并决定现在不准备处理这个搁置集 - 例如,如果我必须放弃所有内容并修复错误 - 有什么方法可以立即清除所有这些状态?
对我来说,突出显示所有文件、右键单击和“撤消”很容易。但这只会恢复文件;我仍然需要进入并删除注释,然后切换到工作项页面,可能选择不同的查询以确保我看到与我关联的工作项,然后取消选中该框。
是否有按钮、菜单项或 VS 扩展可以让我一次性恢复文件更改和提交注释以及工作项列表,然后离开我可以完全干净地做其他事情吗?
If I unshelve a shelveset, the "Pending Changes" toolwindow in Visual Studio will restore the files, the commit comment, and the associated work items I had set up when I shelved.
If I change my mind and decide I'm not ready to work on this shelveset right now -- for example, if I have to drop everything and fix a bug -- is there any way I can clear all of this state at once?
It's easy for me to highlight all the files, right-click, and "Undo". But that only reverts the files; I still have to go in and erase the comment, then switch to the Work Items page, possibly select a different query to make sure I see the work item that I was associated with, and uncheck the box.
Is there a button, menu item, or VS extension that will let me revert the file changes and the commit comment and the list of work items, all at once, and leave me with a totally clean slate to work on something else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不在办公室检查这一点,但值得一试:
将您的更改搁置到新的搁置集中,请记住取消选中“在本地保留待处理的更改”。
I am not at the office to check this out, but it's worth a shot:
Shelve your changes into a new shelveset, keeping in mind to uncheck the "Preserve pending changes locally".
在 Visual Studio 的下一个版本中,这将是一个更好的体验。查看 Jamie Cool 举办的有关此主题的会议
In the next version of Visual Studio it will be a much nicer experience. Check out the session by Jamie Cool on this topic