tfsunshelve

I can't unshelve changes from one branch to another


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


Solution

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