3
votes

I would like to migrate a shelveset from one branch to another. Here is my command:

tfpt unshelve MigrateShelf /migrate /source:"$/Code/OldBranch/Source" /target:"$/Code/NewBranch/Source"

When I execute it, I the window pops up, but it is still unshelving into OldBranch.

I see this question

tfpt migrate for TFS doesn't do anything

and it looks like he has the same question, but he accepted an answer, then complained that it didn't solve his issue?

1
So, I have discovered that the branch that the shelf is originally from has been deleted, but I don't think that is causing this issue.McKay
If I try to continue with the migration anyway, I get messages saying "newer version exists in source control", but I think that that is related to the fact that the branch has been deleted.McKay

1 Answers

1
votes

I also had the same problem.

After investigating, the command, I come to conclusion that the command is correct, it only the issue in the path_name. there must be some typo error in command.

When the path is incorrect, its unshelving the changes in the same branch.

Command: tfpt unshelve /migrate "shelve_name";user_name /source:"$/Sourcepath" /target:"$/targetpath" /nobackup

Thanks, Raj