简体   繁体   English

无需签入 TFVC 即可为不同的工作项创建不同的搁置集

[英]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:如果您一次只进行更改,您可以:

  1. Make changes for work item A对工作项 A 进行更改
  2. Create shelveset a, and not preserve changes locally创建搁置集 a,而不是在本地保留更改
  3. Make changes for work item B对工作项 B 进行更改
  4. Create shelveset b, and not preserve changes locally创建搁置集 b,而不是在本地保留更改

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.

相关问题 在TFS中签入Designer生成的代码,问题 - Checking-in Designer Generated code into TFS, issues 将VSTS \\ TFVC代码迁移到不同域上的Git DevOps - Migrating VSTS\TFVC code to Git DevOps on different domain 检查不同类的属性 - Checking properties on different classes 在不同的事件日志中创建以前删除的源不起作用 - Creating previously deleted source in different event log doesnt work 无需大量转换即可创建和初始化不同的子类型 - Creating and initialising different sub-types without lots of casting 检查以不同形式存在的2个日期 - Checking 2 dates existing on different forms 检查不同字符的 ASCII 值 - Checking the ASCII value of different characters 更新软件如何在代码中工作? 是重新下载应用程序还是检查某些文件以查看它们的大小是否不同? - How does updating software work in code? Is it redownloading the application or checking certain files to see if they are different in size? 有条件地为列表中具有不同基础类型的项目选择视图模型,而无需显式检查和转换每个项目 - Choose view model condtionally for items with different underlying types in a list, without explicitly checking and casting every item 创建具有不同属性的对象 - creating object with different properties
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM