Jonathan Wood
Jonathan Wood

Reputation: 67223

How to move and branch team projects?

I'm looking for some assistance restructuring existing code in TFS. (I'm using TFS 2010 and don't have the option of upgrading.)

The current structure is as follows:

I would like to change the structure to the following (Version100 would be a branch off Main, branched by the date version 1 was released.):

My first question is if my understanding is correct that all folders immediately below Collection must be team projects, and that all other folders must be regular folders? So I would need to convert those team projects to regular folders?

My second question is: is this even possible? Can you branch a team project? There doesn't appear to be any way to branch the contents of the folder immediately below Collection. I can't even select multiple items there. I know I can copy the files manually and then check them in, but I would lose all history. Also, it wouldn't be a true branch.

UPDATE:

It was suggested that I need to structure my folders one level deeper so that I'm branching a regular folder instead of a team project. But how can I do this without losing my history? And without my history, I wouldn't be able to create my version branch.

Upvotes: 0

Views: 218

Answers (1)

Daniel Mann
Daniel Mann

Reputation: 59016

Team Projects are special entities meant to provide isolation.

Think of each team project as containing a totally separate repository.

You should have one team project that contains all of your application's code and all of that application's branches.

  • You cannot branch a team project -- you can branch folders contained within a team project.
  • You cannot move code between team projects

If something is already isolated in a team project, there is no way to move it to another team project and retain its history. There's just no way.

Upvotes: 1

Related Questions