Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS : Can a shelveset be restored to another location?

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.

like image 409
driis Avatar asked Mar 11 '09 09:03

driis


2 Answers

It is possible with the TFS Power Tools.

See: Can I unshelve to a different branch in tfs 2008?

Note the "migrate" option.

like image 160
iammichael Avatar answered Nov 17 '22 02:11

iammichael


Here is the overview about this command Unshelve command basics

From the article, an example:

tfpt unshelve "demo_shelveset";rkandhal /migrate /source:"$/Code-branch-1" /target:"$Code-branch-2/"
like image 23
Rohit Avatar answered Nov 17 '22 02:11

Rohit