Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to update existing shelve set in tfs

My team is using shelving for code review, for X++ code. Which is not a native visual studio language. So you can consider like we storing text files in TFS.

For code developer create a shelve and send it over to the team to reviews it and send feedback. But when the developer address the comments and generates another shelve the comments are lost.

For the reviewer,it becomes difficult if there original comments were addressed or not. The only way is compare 2 shelve code on 2 screen, which is a pain.

like image 300
Gainster Avatar asked Nov 24 '15 00:11

Gainster


People also ask

How do you Unshelve changes in TFS?

You can shelve pending changes (like a local check in) by right-clicking a file/project/folder/etc. and selecting Shelve Pending Changes. If you want to get your shelveset back or get other people's shelved changes. Go to File -> Source Control -> Unshelve Pending Changes….


1 Answers

This function is not supported by now.

Visual Studio Team (Product Team, Microsoft) responded · March 11,2015

Thanks for the suggestion! We’re currently in the planning process for enabling an iterative shelveset experience. We’ll update this item when we have more details.

Source: VS UserVoice

If you just want to replace the exist shelvest(will lose comment either), a trick way can be used: create a new shelf with the same name and then confirm "Replace shelveset"

If you want to check the old comment, I suggest you can use Email Alter in TFS. After setting it, you will get a E-mail notification including detail information of the code review. A sample as below:

enter image description here


Updated

Also agreed with Wouter de Kort and Vicky. The biggest advantage of code review in TFS is that you can suspend and resume your work anytime. No need to pay attention to shelvest.

like image 179
PatrickLu-MSFT Avatar answered Sep 17 '22 13:09

PatrickLu-MSFT