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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With