Amarnath Balasubramanian
Amarnath Balasubramanian

Reputation: 9460

TFS Moving Files with history

FYI,

I have gone through this link - Team Foundation Server - Moving Source with History which is of different scenario

Issue:

We were working in a single solution with multiple projects in TFS1 before three months, but unfortunately one bad day due to the hardware issue we were not able to use the server.

so during the three months of time we had the backup of files and we created a new tfs server (TFSNew) instance and started working. During this three months we split the solution into two solutions with several projects in it and also many added new projects to it.

Now we got the TFS1 instance back and what i need now is i have to migrate the current TFS files along with the History and append the history to the respective files in the TFS1 Server.

Upvotes: 7

Views: 253

Answers (2)

There is no way to move that history across to the new server. You would need to create some PowerShell that got each change and pushed It into the old location.

This is not a trivial activity and you should consult a professional.

I would just take the tip and check that into the of server.

Upvotes: 2

David T. Macknet
David T. Macknet

Reputation: 3172

You could do the following:

  1. Merge Team Projects into one in TFS (see this article).
  2. Do a baseless merge from the New Team Project (you've just brought in) into the new branch.
  3. Delete your New branch.

There's a fair degree of risk involved in this process, mostly if you're not working with proper backups & things. I'd suggest giving it a trial run with one of the smaller projects you're working against, to make sure it goes as expected, or maybe on a whole different TFS install, so you can be sure you've got things figured out before the real deal.

Upvotes: 2

Related Questions