This project has moved and is read-only. For the latest updates, please go here.

Automation of Merge (Forward Integration)

Dec 2, 2011 at 9:43 AM


Is it possible to setup Visual Studio 2010 or Team Foundation Server 2010 to do an automatic merge from Main to Development branch(es) for example when a build in a development branch completes? I know merge conflicts can occur, so an alert or something to remind the developer to merge is also an acceptable solution.

The problem I have now is, that sometimes the Forward Integration merge is forgotten, so changes in the Main branch can be overwritten with old code when the Development branch is merged with Main (Reverse Integration)


I hope someone can help or point me in the right direction! :-)



Dec 2, 2011 at 12:14 PM

I am not a fan of the concept of automatic merges. It seems you have several issues to address:

  • As part of the Reverse Integration process, all individuals responsible for merging the Development branch with Main (RI) should be told (or trained) to do a merge first from Main to Development (FI). If you find that developers are not properly following the correct process, perhaps you need to assign responsibility for merging to a tech lead who will follow the correct procedures.
  • In the scenario you describe, there should be merge conflicts (changes to the same files in both the development branch and the main branch. It seems that in addition to not doing a merge from Main to Development prior to the merge from Development to Main, developers are likely resolving these conflicts incorrectly. Developers should not simply take the source from the development branch when they resolve such conflicts.
  • I don't think an automatic merge is possible in your scenario since, by definition, merge conflicts will need to be resolved manually during the course of the merge
  • Any developer that does not follow correct procedures when merging development to main, will likely not pay attention to alerts or email reminders

Bill Heys
VS ALM Ranger

Feb 18, 2012 at 10:39 PM

I think I may have read something on here that may help with your issue.  See if the link below helps.