svn:限制中继提交给授权用户

标签 svn version-control

我们正计划制定一项政策来防止向主干提交。所有提交都必须针对分支进行。

我应该采取什么方法来完成这项工作?

最佳答案

svn documentation . IT 表示 apache 和 svnserve 都支持基于路径的授权。另外,从文档中:

Do you really need path-based access control?

A lot of administrators setting up Subversion for the first time tend to jump into path-based access control without giving it a lot of thought. The administrator usually knows which teams of people are working on which projects, so it's easy to jump in and grant certain teams access to certain directories and not others. It seems like a natural thing, and it appeases the administrator's desire to maintain tight control of the repository.

Note, though, that there are often invisible (and visible!) costs associated with this feature. In the visible category, the server needs to do a lot more work to ensure that the user has the right to read or write each specific path; in certain situations, there's very noticeable performance loss. In the invisible category, consider the culture you're creating. Most of the time, while certain users shouldn't be committing changes to certain parts of the repository, that social contract doesn't need to be technologically enforced. Teams can sometimes spontaneously collaborate with each other; someone may want to help someone else out by committing to an area she doesn't normally work on. By preventing this sort of thing at the server level, you're setting up barriers to unexpected collaboration. You're also creating a bunch of rules that need to be maintained as projects develop, new users are added, and so on. It's a bunch of extra work to maintain.

Remember that this is a version control system! Even if somebody accidentally commits a change to something they shouldn't, it's easy to undo the change. And if a user commits to the wrong place with deliberate malice, then it's a social problem anyway, and that the problem needs to be dealt with outside of Subversion.

关于svn:限制中继提交给授权用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2428111/

相关文章:

svn - 通过 svnsync 复制 SVN 存储库时如何解决此错误?

php - Capistrano 上传 .git 目录

open-source - 您将如何将多站点 ClearCase/ClearQuest 环境迁移到所有开源环境?

linux - 从 svn 命令行获取两个时间戳之间更改的文件

iphone - 为什么 Xcode 引用不存在的文件?

svn - 如何处理 SVN 中标记文档的更改

svn - SVN等VCS如何存储文件?

svn - 多个 svn 存储库权限

version-control - 如何在 Visual Studio 2010 Premium/Ultimate 中设置 TFS 2010?

SVN 将以前的修订版合并到工作副本中