How to fix branches in TFS after an upgrade

We upgraded our TFS servers to 2010 but our branch information was lost. Fortunately +Richard Banks provided an excellent post on how to rectify the situation.  You can read all about it here:

Richard Banks - Agile and .NET: How To Fix Branches After Migration to TFS2010