As part of the series on “enabling new features in upgraded team projects”; Jamie Cool, our Lead Program Manager on Team Foundation Server team, talks about enabling branch visualization features in upgraded team projects:
In Team Foundation Server 2010, we have significantly enhanced the concept of a branch. We have added functionality to branches such as:
- Branches can now be clearly identified in the source control explorer.
- You can now visualize your branch hierarchy and visually track your code changes as they move through your branches.
- You can assign branch operation security. Ex. Who can create/delete a branch and who can merge a branch.
- Branches now have checks in place to discourage poor branching structures.
In order to take advantage of these new features, you will need to convert your previously branched folders to fully fledged branches. The steps for doing this are as follows:
- Identify the branch structure you are currently using. If you would like to change your branch structure, now may be a good time to do so, but it is not necessary.
- Identify the folder in your solution explorer mapped to your parent (top level) branch.
- Right click on that folder. On the context menu select “Branching and Merging” & then “Convert Folder to Branch”. This will open a dialog for doing the conversion of a folder to a branch.
- At the bottom of the dialog, check the “Recursively perform this conversion for all branched child folders”.
- Next click the “Convert” button. This will upgrade this folder to a branch. It will also walk the branch tree and convert all folders that have been branched from this folder.
- Your branches should now be shown with the branch icon in the source control explorer tree.
- If you have any folders that had their relationship established via Baseless Merge, you will need to use the “Reparent Branch” option from the “Branching & Merging” context menu to establish the parent/child relationship in the branch hierarchy.
- Repeat these steps for all remaining branch trees in your solution.
Now that you have completed this step, you should be able to take advantage of the powerful new branching features in Team Foundation Server 2010. You can now view your branch structure visually by selecting “Branching and Merging” and then “View Hierarchy” from the branch context menu. You can also choose to “Track Changes” from a work item’s context menu to see how the changeset associated with that work item has moved through your various branches.
You can check out the MSDN documentation on Branch Visualization to learn more about the capabilities available to you: