I am a bit new to SVNed code.

We are a small team (4 people) divided into two duos.
Each of the duos has its own disjoint share of the project.
I want to be able to SVN a project to a single repository with the following:

  • each duo, should be able to write to it's own "section" of the rep'.
  • each duo, should be able to read-only the other duo's section.

Can this be done on a single repository?
Are there folder-specific, rather than repository-wide permissions? Is this hosting/repository service dependent? I am currently hosted at XP-Dev.

Would appreciate any kind of comment or reference. David


Are you sure that you need access control for only 4 people. This sounds like over-engineering to me.

Written by Rudi

Accepted Answer

I think your best bet is to use Subversion's path-based authorization. This may be hosting-service dependent - you'll have to ask around at XP-Dev to find out if they support it.

An example would be something along the following lines:

proj1-developers = harry, joe
proj2-developers = frank, sally

@proj1-developers = rw
@proj2-developers = r

@proj1-developers = r
@proj2-developers = rw

This can also be used in conjunction with Apache-based per-directory access control (using the AuthzSVNAccessFile directive) and password-based access (using the AuthUserFile directive pointing at a file created using htpasswd). I'm currently using all three successfully, and also added on optional LDAP authentication. It helps when you have full access to the repository server.

Written by mlschechter
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki