Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unshelve to another branch


I'm trying to unpack my changes to the another branch using TFS Power Tools. I'm trying to execute command

tfpt unshelve /migrate "NuGet Build" "/source:$/ProjectName/Main/Source" "/target:$/ProjectName/Main/Source-NuGet" 

But it returns message 'tfpt : Unable to determine the workspace'.

I'm running command from the directory that mapped to this project. Moreover I've tried to use tf workspaces /s:http://our-tfs.

Does anyone know how to solve this problem?

like image 209
Недоброе Привидение Avatar asked Apr 30 '13 15:04

Недоброе Привидение


People also ask

How do I merge Shelveset in Visual Studio?

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 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….


2 Answers

You can define your path in cmd with the TFPT. And then, from there, you go to the destination folder or workspace where you want to unshelve your code.

1. c:\>path = %path%;C:\Program Files (x86)\Microsoft Team Foundation Server 2010 Power Tools  2. cd c:\[some location]\"destination workspace"  3. tfpt unshelve /migrate "NuGet Build" /source:"$/ProjectName/Main/Source" /target:"$/ProjectName/Main/Target-NuGet" 

Here you have a video that explains this.

Link http://msdn.microsoft.com/en-us/vstudio/cc896548.aspx

like image 123
carzogliore Avatar answered Sep 22 '22 10:09

carzogliore


I know this has been answered but for me the problem was easily solved by using Visual Studio command prompt instead of the default windows CMD. Most solutions out there just say "Open CMD..." which is probably where the problem lies.

The reason is windows CMD is aware of the power tools commands (e.g. tfpt) but not of the normal VS commands (e.g. tf).

like image 28
tsemer Avatar answered Sep 25 '22 10:09

tsemer