Why are Commits being Reverted? A Comparative Study of Industrial and Open Source Projects

Authors - Junji Shimagaki, Yasutaka Kamei, Shane McIntosh, David Pursehouse, Naoyasu Ubayashi
Venue - International Conference on Software Maintenance and Evolution, pp. 301–311, 2016

Related Tags - ICSME 2016 software evolution

Abstract - Software development is a cyclic process of integrating new features while introducing and fixing defects. During development, commits that modify source code files are uploaded to the version control systems of projects. Occasionally, these commits need to be reverted, i.e., the code changes need to be completely backed out of the software project. While one can often speculate about the purpose of reverted commits (e.g., the commit may have caused integration or build problems), little empirical evidence exists to substantiate such claims. The goal of this paper is to better understand why commits are reverted in large software systems. To that end, we quantitatively study two proprietary and four open source projects to measure: (1) the proportion of commits that are reverted, (2) the amount of time that commits that are eventually reverted persist within a codebase, and (3) the most frequent reasons why commits are reverted. Our results show that 1%-5% of the commits in the studied systems are reverted. Those commits that are eventually reverted persist within the codebase for 1-35 days (median). Furthermore, we identify 13 common reasons for reverting commits, and the distribution of reasons for reverted commits varies broadly from project to project. A complementary qualitative analysis suggests that many reverted commits could have been avoided with better team communication and change awareness. These results have been used to make improvements to the Sony Mobile development process.

Preprint - PDF

Bibtex

@inproceedings{shimagaki2016icsme,
  Author = {Junji Shimagaki and Yasutaka Kamei and Shane McIntosh and David Pursehouse and Naoyasu Ubayashi},
  Title = {{Why are Commits being Reverted? A Comparative Study of Industrial and Open Source Projects}},
  Year = {2016},
  Booktitle = {Proc. of the International Conference on Software Maintenance and Evolution (ICSME)},
  Pages = {301–311}
}