Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS shelveset migration from one branch to another

I have to migrate the shelveset created in one branch say "development" to another say "release". so that I can directly merge the shelveset then to release which was created for development branch.

the command I have used is:

tfpt unshelve "shelveset name" /migrate /source:"$...development" /target:"$...Release" 

it is showing this error:

unable to determine the workspace

like image 610
superman Avatar asked Aug 31 '11 08:08

superman


People also ask

How do you merge Shelveset?

It allows you to merge(unshelve) a shelveset into a specific branch. Using Source Control Explorer in Visual Studio, get the history for any folder or file. Select one or more changesets in the list and right-click your selection. The context menu will now have a 'Merge...' option.

How do you get other Shelveset in TFS?

To find a shelvesetChoose the Actions link, and then choose Find Shelvesets. On the Find Shelvesets page, enter the name or alias of a project team member in the box, and then choose the Enter key. If you don't know the name of the owner, you can type * to list shelvesets for all users.

How do I merge Shelveset to local?

You can perform the unshelve and merge together by using the tfpt unshelve command from a Visual Studio command prompt. Make sure your active directory is a directory that is mapped to your local workspace otherwise you may see "Unable to identify workspace".


2 Answers

Your location from where you launch the command must be from within your workspace. E.g. c:\workspaces\project\development if that's where your source is located.

like image 98
Krimson Avatar answered Sep 24 '22 01:09

Krimson


I guess you question is: How can I get the job done without this error occurring?. In that case, make sure both branches are mapped to your local system and a latest version of your source code in you did a get-latest-version.

That should prevent the error from happening, because the paths then both contain information about the workspace used for the mapping.

like image 25
kroonwijk Avatar answered Sep 25 '22 01:09

kroonwijk