且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何限制特定的 trac/svn 用户访问 SVN 的特定文件夹/主干?

更新时间:2023-11-30 11:54:22

您可以像这样使用 svn 服务器的 authz 文件对特定目录进行密码保护:

You can password-protect specific directories using the authz file of the svn server like this:

[proj:/branches/davesbranch]
dave = rw

其他方式用于通过Apache访问.请参阅本书.

There are other means for accessing through Apache. See the book.

我的问题是为什么?"如果你担心他们会把事情搞砸,那有点违背修订控制的想法.此外,如果您让开发人员***地创建任意数量的分支,那么他们将 弄乱自己的树枝而不是树干.

My question would be "why?" If you're afraid they'll mess something up, that kinda goes against the idea of revision-control. Furthermore, if you instead give developers the freedom to create as many branches as they want, then they'll mess up their own branches instead of the trunk.