Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What happens when two developers at different sites try to commit changes to the same line of code at the same time?

0
Posted

What happens when two developers at different sites try to commit changes to the same line of code at the same time?

0

Ans. Let’s assume two developers at two different sites checkout the same file and make changes to the same line. The first developer commits their changes and a revision number is assigned. The changes just committed by this developer are already in the source code repository replica at the second developer’s site because WANdisco immediately replicated them. The second developer was unaware of this latest revision and failed to do an update. The second developer then attempts to do their commit and receives an out of date error message, just as they would if both developers were working against the same Subversion or CVS repository at the same site. Users will even see the same Subversion or CVS messages. The second developer whose commit failed can then do an update from their local repository and they will pick up the latest revision. As soon as this developer resolves the conflicts their changes are committed with a new revision number, and propagated to all of the other repositor

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123