3

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?

Community
  • 1
  • 1
McKay
  • 12,334
  • 7
  • 53
  • 76
  • 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 Nov 08 '11 at 19:46
  • 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 Nov 09 '11 at 15:06

1 Answers1

1

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

  • Well seeing as how this was a year and a half ago, I no longer have access to that source any longer, but I'm pretty sure I double checked the target path. Is that what you meant by path_name? – McKay Jan 27 '14 at 13:44
  • yes, I had also the same problem, and finalyy seen that the path_name is incorrect(have some extra spacing issue). Above command works fine for me after deleting the extra space. –  Jan 28 '14 at 07:25
  • 1
    As another follow-up, to get your actual branch path, right-click the branch in the Source Explorer -> Advanced -> Properties. Once I did that it worked. – KnowHowSolutions Nov 07 '14 at 23:26