Trunk------
\
\Branch one------
\
\Branch two------
This is an odd scenario, and we got here by mistake, but I need to make changes to Branch two, then merge the changes into the Trunk without affecting Branch one. No further development is being performed in Branch one.This cannot be performed through the Visual Studio TFS graphical interface, but you can launch this type of merge from the command line. See this article about baseless merges.
Here's what to do and what happens. From a VS command prompt...
tf merge /baseless c:\data\proj1 c:\data\proj2 /recursive /version:C123~C125The first path is the source branch; the second is the destination.
The version "C" stands for changeset, and the changeset numbers follow. You can give a range or make the numbers the same to do a single changeset.
This will do the merge and present you with the graphical merge dialog you're used to seeing. I suggest using the merge tool to merge changes manually so you get only the changes you want. Auto-merge may bring in changes you didn't intend.
This just saved me a lot of time today.
