Reputation: 67
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?
Upvotes: 3
Views: 173
Reputation: 30662
Are there some files committed successfully while some failed? If so, what could i do to go back to the correct state?
No, this cannot happen by design. Commits in Apache Subversion are atomic.
Upvotes: 0
Reputation: 55443
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.
Upvotes: 3