5

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.

driis
  • 161,458
  • 45
  • 265
  • 341
  • possible duplicate of http://stackoverflow.com/questions/117337/can-i-unshelve-to-a-different-branch-in-tfs-2008 – Ray May 05 '10 at 20:13

2 Answers2

16

It is possible with the TFS Power Tools.

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

Note the "migrate" option.

Community
  • 1
  • 1
iammichael
  • 9,477
  • 3
  • 32
  • 42
1

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/"
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
Rohit
  • 6,365
  • 14
  • 59
  • 90