2

If I have a /repos directory and inside I have X repositories setup and running, am I able to add /repos/TeamX/Project1, /repos/TeamX/Project2, etc where TeamX is a directory and not a subversion repository? If yes, how do I setup the permissions in my configuration file?

[TeamX/Project1:/]
@TeamX = rw

This is not working for me.

1 Answer 1

5

Assuming you're using SVNParentPath for the /repos directory, subversion will only find repositories in immediate subdirectories of /repos. /repos/TeamX/Project1 will not be discovered by SVN if your SVNParentPath is /repos. If you're using DAV and Apache, you need a separate Location stanza and SVNParentPath for each:

<Location /svn/TeamX/>
  Dav SVN
  SVNParentPath /repos/TeamX/
  ...
</Location>

<Location /svn/TeamY/>
  Dav SVN
  SVNParentPath /repos/TeamY/
  ...
</Location>

Each stanza would specify its own auth file specific to that repository. For instance, the TeamX auth file could look like:

[Project1:/]
@TeamX = rw

[Project2:/]
@TeamX = r
1
  • This is the solution I finally came up with as well and implemented. I just didn't like having 2 auth files. I have redundancies in groups this way which I do not love.
    – Greg
    Jun 4, 2009 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.