Search code examples
tfstfs-power-tools

tfpt migrate for TFS doesn't do anything


I'm trying to use tfpt to migrate a shelveset from a source branch into a target branch, but it doesn't appear to do anything...not that I'd expect much more...but any chance anyone knows what's wrong? I'm following the instructions correctly I think...

I've got:

tfpt unshelve "DbMigrations" /migrate /source:$/TeamProject/Main /target:$/TeamProject/Releases/7.20

Solution

  • What happens after you run the command? You need to have a few things set up before migrating:

    • A workspace that encompasses both the source and target branches.
    • You need to run the command in a folder within the source.

    Once you run the command you should be asked to merge the changes from the original shelfset into the destination branch and resolve any conflicts, which finally pends a changeset on your client. Nothing is touched on the server until you check that changeset into TFS itself.