如何使用 SVN 服务器授予文件级权限
我目前正在使用 SVN 进行源代码管理(Visual SVN 服务器 + 乌龟 SVN),我们正在一个大团队中启动一个新项目。
我想知道如何向特定用户授予特定文件或文件夹的提交权限。 我们将不同模块的职责赋予了不同的开发人员,管理层想知道是否可以限制开发人员仅致力于他的模块。
我看到对此答案的评论提到可以使用 Visual SVN,但我没能做到。
I am currently using SVN for Source Control (Visual SVN server + tortoise SVN) and we are starting a new project in a large team.
I was wondering how to give commit rights on specific files or folder to a particular user.
We have given responsibilities for different modules to different developers, and management was wondering if it is possible to restrict a developer to commit to only his module.
I saw that a comment to this answer mentions that it is possible with Visual SVN, but I haven't been able to do so.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Subversion 为您提供了使用基于路径的授权的选项。这意味着,您可以将其配置为用户对特定目录中的文件具有读取、读写或无访问权限。这是在每个存储库的基础上完成的。
以下资源将帮助您找到适合自己的方法:
第一个非常具体,告诉您 VisualSVN Server 上下文中的规则,第二个更抽象,但为您提供了完整的背景和解释(以及一些讨论为什么限制开发人员根本不是一个好主意)。
最后一点:您确定您永远不需要更改其他模块中的代码的权利吗?重构,阻碍自己完成工作的错误,......?
Subversion provides you the option to use path based authorization. That means, you may configure it that users have read, read-write or no access rights to read and write files in a specific directory. This is done on a per-repository base.
The following resources will help you find your way:
The first one is very concrete and tells you the rules in the context of VisualSVN Server, the second one is more abstract, but gives you complete background and explanation (and some discussion why restricting developers is no good idea at all).
One final remark: Are you sure that you will never ever need the right to change code in other modules? Refactoring, errors that hinder yourself to do the job, ...?