Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Subversion commits atomic?

Tags:

atomic

commit

svn

Are commits performed by Subversion atomic?

What will happen if commit failed?

Are there some files committed successfully while some failed? If so, what could i do to go back to the correct state?

like image 287
q11112345 Avatar asked Feb 15 '26 10:02

q11112345


1 Answers

Yes, commits are atomic — here's a citation from "The Subversion book":

A Subversion client commits (that is, communicates the changes made to) any number of files and directories as a single atomic transaction. By atomic transaction, we mean simply this: either all of the changes are accepted into the repository, or none of them is. Subversion tries to retain this atomicity in the face of program crashes, system crashes, network problems, and other users' actions.

like image 73
kostix Avatar answered Feb 21 '26 05:02

kostix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!