Assessing the Value of Branches with What-if Analysis

Christian Bird and Thomas Zimmermann

Abstract

Branches within source code management systems (SCMs) allow a software project to divide work among its teams for concurrent development by isolating changes. However, this benefit comes with several costs: increased time required for changes to move through the system and pain and error potential when integrating changes across branches. In this paper, we present the results of a survey to characterize how developers use branches in a large industrial project and common problems that they face. One of the major problems mentioned was the long delay that it takes changes to move from one team to another, which is often caused by having too many branches (branchmania). To monitor branch health, we introduce a novel what-if analysis to assess alternative branch structures with respect to isolation and liveness. We demonstrate with several scenarios how our what-if analysis can support branch decisions. By removing high-cost-low-value branches in Windows based on our what-if analysis, changes would each have saved 8.9 days of delay and only introduced 0.04 additional conflicts on average.

Details

Publication typeInproceedings
Published inProceedings of the 20th International Symposium on Foundations of Software Engineering (FSE 2012)
PublisherAssociation for Computing Machinery, Inc.
> Publications > Assessing the Value of Branches with What-if Analysis