如何允许基于分支通过WebDAV访问SVN?

发布于 2024-08-16 04:01:43 字数 181 浏览 6 评论 0原文

我想按分支限制用户对 SVN 存储库的访问。用户将通过 Apache / WebDAV 访问存储库。这主要与提交有关,我不太关心读取访问权限。而且,这主要是为了避免事故,而不是不信任用户。

请注意,我即将设置 WebDAV 访问,即我对此仍然是菜鸟。到目前为止,我已经阅读了一些教程,但找不到我需要的所有零碎内容。这个问题是缺失的。

I want to restrict the access of users to SVN repos by branch. The users would be accessing the repo via Apache / WebDAV. It's mostly about commits, I don't really care about the read access too much. Also, it's mostly about avoiding accidents, rather than distrusting users.

Note that I am just about to set up the WebDAV access, i. e. I'm still a noob on this. So far, I have read a few tutorials and could not find all the bits and pieces that I need. This question is one that's missing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

茶色山野 2024-08-23 04:01:43

查看 svnbook。当您有如下布局时,没有自动方法来限制对所有分支的访问:

projectA/trunk
projectA/branches
projectB/trunk
projectB/branches

它归结为仅授予某些人对分支的访问权限:

[groups]
calc-developers = harry, sally, joe

# Allow everyone read access
[/]
* = r

# Allow harry to write to branches
[calc:projectA/branches/]
harry = rw

# Allow calc-developers group RW access to trunk
[calc:projectA/trunk]
@calc-developers = rw

Check out svnbook. There's no automatic way though to restrict access to all branches when you have a layout like:

projectA/trunk
projectA/branches
projectB/trunk
projectB/branches

It comes down to only giving certain people access to branches:

[groups]
calc-developers = harry, sally, joe

# Allow everyone read access
[/]
* = r

# Allow harry to write to branches
[calc:projectA/branches/]
harry = rw

# Allow calc-developers group RW access to trunk
[calc:projectA/trunk]
@calc-developers = rw
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文