move branches in team system
I have the following scenario 开发者_Python百科in my TFS:
MyTeamProject
Trunc
Sources
Scripts
Installations
Prod
Sources
Scripts
Installations
When prod is a branch of trunc.
Now I need to create versions under my production folder:
MyTeamProject
Trunc
Sources
Scripts
Installations
Prod
V1.0.0
Sources
Scripts
Installations
V1.1.0
Sources
Scripts
Installations
How can I move the current production to the version 1.0.0 folder, and still keep on the branch relation from trunc to v1.0.0 (previously "Prod")? If i'll move one folder at a time (Sources, Scripts & Installations), I'll have the branch relation to the specific folders, and not on the entire Trunc.
Any Idea?
I have been in this situation before, and it is actualy easy to solve once you have done it once:
- Rename "$/MyTeamProject/Prod" to "$/MyTeamProject/v1.0.0" (You can't move the folder under itself)
- Check-in
- Rename "$/MyTeamProject/v1.0.0" to "$/MyTeamProject/Prod/v1.0.0"
- Check-in
You can now crete a new branch from "$/MyTeamProject/Trunk" to "$/MyTeamProject/Prod/v1.1.0"
精彩评论