I’m trying to clean up our work-site Team Foundation Server 2010 defaultcollection.
Unfortunately we originally set it up with a whole bunch of projects at the root level of the defaultcollection.
Now we want to clean it up by moving a bunch of those projects into a root-level archive directory, while preserving the history of the projects.
This is proving extremely difficult. I’ve read a bunch of stuff online and run some trials, but I’m still having issues.
Part of the problem is that projects at the root level seem to be “immune” to a bunch of “normal” actions you can perform on projects in general, such as the Move command (which is greyed-out).
If I try to use the command line to perform the move like this:
tf.exe move $/TestProj $/Archive/TestProj/
I get:
TF10169: Unsupported pending change attempted on team project folder $/Test. Use the Project Creation Wizard in Team Explorer to create a project or the Team Project deletion tool to delete one.
So I figured I’d move the contents like this:
tf.exe move $/TestProj/* $/Archive/TestProj/
That worked, and history was preserved, but then when I deleted the original project like this:
TFSDeleteProject.exe /collection:MYSERVER\DefaultCollection TestProj /force
History was lost!
Those aren’t “root level projects”. Those are “Team Projects”. There’s a lot more to a team project than just source control, so, no, you can’t do the same things with a “team project folder” as you could with a lower-level folder.
TFS does not use the term “project” the same way that SourceSafe did. In SS, “project” meant pretty much the same thing as “folder”.