Deleting Team Project in TFS after moving Source Control items
I have a situation where I have created a new team project and imported source code (with history) into TFS from VSS. The problem is that the team project name is wrong.
I am planning on creating th开发者_运维技巧e new (correct) team project and moving source code from $WrongTeamProjectName to $CorrectTeamProjectName.
Will it be safe for me to delete the tfs project covering $WrongTeamProjectName after the move?
I did some research for you, and what it comes down to is what you consider to be "safe." All of your files will be intact, but you will lose all history. The move command is essentially a rename command-- however, because you are going to a new team project, all you'll see for history is the changeset you checked in.
If you keep $\WrongProjectName
, but lock it down so that no-one can check-out / check-in files, you will at least maintain the history.
There is, unfortunately, no way to rename a TFS project, either. So that route would be out as well.
If I were making a recommendation, I would suggest that you do the move, but keep the original project in place. Then, if you turn on the feature that shows you deleted files, you should be able to see the history of the files in the incorrectly named team project.
精彩评论