10

I'm using tfpt tool for moving a shelveset from one branch to another. I've read some stackoverflow questions about it but neither seems to fit to my problem. I'm running the command like this:

tfpt unshelve "my shelveset name" /migrate /source:source_brach /target:target_branch

When I'm doing this I'm getting an error like this example:

The change to filen_name_with_path cannot be unshelved because the server path is not mapped in the local workspace

Jack Bonneman
  • 1,821
  • 18
  • 24
Rafal_Koscinski
  • 317
  • 5
  • 22

3 Answers3

5

Make sure your workspace mapping includes both branches. Do a get latest on both branches first to test this is setup right.

Dylan Smith
  • 22,069
  • 2
  • 47
  • 62
5

Make sure that

  1. One or more of your workspace mappings include both branches (they do not have to be in the same workspace);
  2. The location from where you launch the command is in your target workspace.
Gyula Kósa
  • 151
  • 1
  • 13
  • Number 2 did it for me. I had to type the "cd" command to navigate to the target folder then I ran the command from there. – Dragos Durlut Oct 05 '16 at 09:39
0

All you have to do is go to your target branch mapped local folder using cmd and run the command from there. It should work

Nishant Kumar
  • 463
  • 2
  • 9
  • 18