[英]Creating different shelvesets for different work itesm without checking-in TFVC
I have a couple of work items which I need to complete but my code reviewer is unavailable.我有几个工作项目需要完成,但我的代码审查员不可用。 I was wondering if it is possible address each work item separately and shelve the changes for code review later.我想知道是否有可能分别处理每个工作项并搁置更改以供稍后进行代码审查。 ie Assuming i have 3 work items A and B. Is it possible to work on Work Item A, shelve the changes then work on Work Item B and shelve the changes.即假设我有 3 个工作项 A 和 B。是否可以处理工作项 A,搁置更改然后处理工作项 B 并搁置更改。 Then at a later date, send the shelvesets for A and B for code review然后在稍后的日期,发送 A 和 B 的搁置集进行代码审查
If I understand the question, you have 2 work items that both need to touch the same file(s).如果我理解这个问题,您有 2 个工作项都需要访问相同的文件。 If you are using a recent version Visual Studio, then you have the option to "Preserve pending changes locally" upon creation of the shelveset (checkbox immediately below the field where you enter the name for the shelveset).如果您使用的是最新版本的 Visual Studio,则可以在创建搁置集时选择“在本地保留挂起的更改”(在您输入搁置集名称的字段下方的复选框)。
Provided you only work on change at a time, you could:如果您一次只进行更改,您可以:
If you aren't using Visual Studio, the same could be accomplished by making the changes and shelveset for A, and then locally revert those changes, putting things back to their initial state, and then work on B.如果你不使用 Visual Studio,同样可以通过对 A 进行更改和搁置集来完成,然后在本地还原这些更改,将事情恢复到初始状态,然后在 B 上工作。
All of this assumes the changes for both A and B aren't currently all made together touching the same files...所有这些都假设 A 和 B 的更改当前并未全部一起接触相同的文件......
ps I would have added a comment to the thread above, but i don't have enough points to do so. ps我会在上面的线程中添加评论,但我没有足够的积分来这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.