Attributes that may raise the occurrence of merge conflicts

José William Menezes, Bruno Trindade, J. F. Pimentel, A. Plastino, Leonardo Gresta Paulino Murta, Catarina Costa
{"title":"Attributes that may raise the occurrence of merge conflicts","authors":"José William Menezes, Bruno Trindade, J. F. Pimentel, A. Plastino, Leonardo Gresta Paulino Murta, Catarina Costa","doi":"10.5753/JSERD.2021.1911","DOIUrl":null,"url":null,"abstract":"Collaborative software development typically involves the use of branches. The changes made in different branches are usually merged, and direct and indirect conflicts may arise. Some studies are concerned with investigating ways to deal with merge conflicts and measuring the effort that this activity may require. However, the investigation of factors that may reduce the occurrence of conflicts needs more and deeper attention. This paper aims at identifying and analyzing attributes of past merges with and without conflicts to understand what may induce direct conflicts. We analyzed 182,273 merge scenarios from 80 projects written in eight different programming languages to find characteristics that increase the chances of a merge to have a conflict. We found that attributes such as the number of changed files, the number of commits, the number of changed lines, and the number of committers demonstrated to have the strongest influence in the occurrence of merge conflicts. Moreover, attributes in the branch that is being integrated seem to be more influential than the same attributes in the receiving branch. Additionally, we discovered positive correlations between the occurrence of conflicts and both the duration of the branch and the intersection of developers in both branches. Finally, we observed that PHP, JavaScript, and Java are more prone to conflicts.","PeriodicalId":189472,"journal":{"name":"J. Softw. Eng. Res. Dev.","volume":"12 3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"J. Softw. Eng. Res. Dev.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5753/JSERD.2021.1911","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

Collaborative software development typically involves the use of branches. The changes made in different branches are usually merged, and direct and indirect conflicts may arise. Some studies are concerned with investigating ways to deal with merge conflicts and measuring the effort that this activity may require. However, the investigation of factors that may reduce the occurrence of conflicts needs more and deeper attention. This paper aims at identifying and analyzing attributes of past merges with and without conflicts to understand what may induce direct conflicts. We analyzed 182,273 merge scenarios from 80 projects written in eight different programming languages to find characteristics that increase the chances of a merge to have a conflict. We found that attributes such as the number of changed files, the number of commits, the number of changed lines, and the number of committers demonstrated to have the strongest influence in the occurrence of merge conflicts. Moreover, attributes in the branch that is being integrated seem to be more influential than the same attributes in the receiving branch. Additionally, we discovered positive correlations between the occurrence of conflicts and both the duration of the branch and the intersection of developers in both branches. Finally, we observed that PHP, JavaScript, and Java are more prone to conflicts.
可能导致合并冲突发生的属性
协作软件开发通常涉及分支的使用。在不同分支中所做的更改通常是合并的,可能会产生直接和间接的冲突。一些研究关注的是调查处理合并冲突的方法,以及衡量该活动可能需要的努力。然而,对可能减少冲突发生的因素的调查需要更多和更深入的关注。本文旨在识别和分析有冲突和没有冲突的过去合并词的属性,以了解可能导致直接冲突的因素。我们分析了用8种不同编程语言编写的80个项目中的182273个合并场景,以发现增加合并发生冲突的可能性的特征。我们发现,诸如更改的文件数量、提交的数量、更改的行数量以及提交者的数量等属性在合并冲突的发生中具有最强的影响。此外,正在集成的分支中的属性似乎比接收分支中的相同属性更有影响力。此外,我们发现冲突的发生与分支的持续时间以及两个分支中开发人员的交集之间存在正相关关系。最后,我们观察到PHP、JavaScript和Java更容易发生冲突。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信