svn - Subversion 提交是原子的吗?

标签 svn commit atomic

提交是由 Subversion 原子执行的吗?

如果提交失败会怎样?

是否有一些文件提交成功而一些失败? 如果是这样,我该怎么做才能回到正确的状态?

最佳答案

是的,提交是原子的——这里是 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.

关于svn - Subversion 提交是原子的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46234336/

相关文章:

c# - 工作单元模式如何容纳对新聚合的引用?

svn - 如何将SVN中的分支与所有提交历史合并回主干?

git - 查找未注明日期的提交日期?

Mercurial 工作流程 : why do I seem to commit everything twice?

memory - 原子操作是否建立了先行关系?

c - 64 位比较和交换 (CAS) 应该在 32 位机器上工作吗? (或 64 位机器?)

svn - 克隆/镜像 SVN 存储库

svn - 释放我的 SVN 存储库中的空间

svn - 在 Rake cp_r 中排除 .svn 目录

c# - LibGit2Sharp 获取自 {Hash} 以来的所有提交