shelveset

How to prevent TFS from deleting shelvesets that were checked in via a queued build?

不想你离开。 提交于 2020-01-07 02:56:06
问题 Checking in shelvesets is a nice feature of the build system in TFS, but the shelveset is deleted after the build finishes. Is there a way to change this behavior so that the shelveset is preserved? I use the build+check in shelveset feature all the time to check in code from teammates, but sometimes I don't want the original shelveset to be deleted by TFS. In some situations, this can cause problems, like when the shelveset is associated with a code review work item. In that case, all

How to find a Shelveset using information provided by a CodeReviewRequest

天涯浪子 提交于 2019-12-23 04:21:31
问题 If I have the name and the owner of the Shelveset, I can find it successfully using the following code: foreach (Shelveset shelveset in versionControlServer.QueryShelvesets(workItem. Fields["Associated Context"].Value.ToString(), "NW\\LFreeman")) where workItem is an instance of a CodeReviewRequest workItem . I can get the name of the CodeReviewRequest from workItem.Fields["Associated Context"] If I set the owner to null as such, it returns an empty list. It has been reported to me that this

Convert changeset(s) to shelveset

纵然是瞬间 提交于 2019-12-20 09:48:30
问题 Is it possible to create a shelveset from the diff of two versions of one branch just by some operations in tfs/tfpt? e.g. create a shelveset from (changeset 2013 -> changeset 2034) 回答1: No, it's not possible. Changesets and shelvesets are different things, with different purposes. You could probably write a plugin to do what you're after (retrieve changeset, check out the files, shelve the files). 回答2: It is possible to create a shelveset from a changeset with some limitations. I needed to

TFS: How do I view .cs files in the VS IDE when viewing details of a shelveset?

可紊 提交于 2019-12-19 08:07:09
问题 For our code review process we open the details of a shelveset to see all files that have been worked on. Right clicking and choosing "Compare" works great for existing ( modified ) files. But, when a file has been added I just want to view the file. Double clicking ( or right click -> view ) opens .cs ( and .sql )files in notepad. When I try to open a .PRC file ( extension for our stored procedures ) I get a prompt that allows me to choose what program to use for viewing. Does anyone know

TFS Meltdown - How can I recover shelved changes

我们两清 提交于 2019-12-12 08:15:49
问题 I had my working folder set to a RAM drive. During the night there was an extended power outage, the UPS ran out and my machine went down. Thankfully I shelved my changes before I went home and that shelveset is visible in Team Explorer. The changeset includes the project file and some new files which have not yet been added to source control. I'm attempting to recover the affected files but am getting errors: Attempting to view the shelved files gives TF10187 (or a general, unnumbered) The

TFS : Can a shelveset be restored to another location?

拟墨画扇 提交于 2019-12-10 14:37:49
问题 I have the following scenario: A user shelves some changes. Time goes by and a new branch of the product is created. Later, it is determined that the shelveset contains code, that we will need in the new branch. By default; Visual Studio can only restore the shelveset changes to the location where they were shelved from. Is it possible to restore my shelveset in the new branch ? I do not want the code to be checked into the original branch, as it would break stuff. 回答1: It is possible with

Find Shelveset of Another User

百般思念 提交于 2019-12-04 15:36:07
问题 When I follow instructions to find a shelveset, I'm given a list of all my personal shelvesets. But what I want is to view and unshelve from another user's selection. Other developers can simply change the user to whoever they want. No such option exists for me. I've told my TFS admin about this issue. The response I got was that "We haven’t locked anything down, you should be able to view others' shelvesets." Nevertheless, I can't see others' shelvesets. What could be causing this? What

TFS Meltdown - How can I recover shelved changes

北战南征 提交于 2019-12-03 17:06:19
I had my working folder set to a RAM drive. During the night there was an extended power outage, the UPS ran out and my machine went down. Thankfully I shelved my changes before I went home and that shelveset is visible in Team Explorer. The changeset includes the project file and some new files which have not yet been added to source control. I'm attempting to recover the affected files but am getting errors: Attempting to view the shelved files gives TF10187 (or a general, unnumbered) The system cannot find the file specified even though I can see them in the Pending Changes list. Attempting

How to get specific changeset version treated as changes relative to latest version?

最后都变了- 提交于 2019-12-03 16:21:29
问题 I rolled back a changeset. Now I need to check out the changeset that was rolled back with 'actualized' pending changes. So like everything is before the commit of the changes. When I get specific version with files override I see nothing in pending changes window. How can I get the state I need? Is it possible? 回答1: After doing the "Get Specific version" you need to check out every file in the changeset manually (right-click, check-out). Be sure that you have the "Get latest on checkout"

Find Shelveset of Another User

◇◆丶佛笑我妖孽 提交于 2019-12-03 09:44:35
When I follow instructions to find a shelveset , I'm given a list of all my personal shelvesets. But what I want is to view and unshelve from another user's selection. Other developers can simply change the user to whoever they want. No such option exists for me. I've told my TFS admin about this issue. The response I got was that "We haven’t locked anything down, you should be able to view others' shelvesets." Nevertheless, I can't see others' shelvesets. What could be causing this? What specific issue or permission(s) should the TFS admin check to confirm "we havn't locked anything down?"