问题
I have trac installed with svn. I have different trunks of projects. I want to limit few users, so that they can only access one specific trunk whichever I define.
How do I do that?
回答1:
You can password-protect specific directories using the authz file of the svn server like this:
[proj:/branches/davesbranch]
dave = rw
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.
回答2:
At Trac Hacks there's a plug-in called Svnauthz File Administration plugin that might work for you. I'm looking to do something similar myself though what I want to do is restrict different Trac projects to certain parts of the repository. Haven't tried it yet. Will get back to you once I do.
来源:https://stackoverflow.com/questions/3455966/how-do-i-restrict-specific-trac-svn-users-to-access-specific-folders-trunk-of-sv