File based SVN repository over a network
I would like to create an file based SVN repository over the network. Is it possible to access the repository by the all the clients connected to the local network? Is it possibl开发者_JAVA技巧e to give per-directory permission to that repository?
To be more precise, I have five computers connected in the network. I would like to keep the repository in my home account. There are other users who have a user account to login into the network. I am amongst those users. Is it possible for me to create file based SVN and give per-directory user permissions to those users?
You can read the SVN Book Version Control with Subversion online, there you will find a chapter named Built-in Authentication and Authorization that explains how to do what you want.
There is also a section named Path-based Authorization that shows how to grant read/write privileges over specific paths.
You can expose your server via several protocols. The simpler is using the svn protocol. You can also use SSH or if you can configure your own Apache Server, you can expose it through HTTP protocol.
All this is well explained in the book. I actually learned to configure my own SVN server through HTTP Apache server after a few hours of reading and experimentation.
EDIT-1
If what you intend is direct access, you can use file-based URLs to achieve this. This is also explained in the book in the section Subversion Repository URLs.
The permission on the file://
area will only be valid for the repository access but not for the permission on the contents of the repository. Furthermore the access via file://
should be done only from the server, not from clients. So the best solution is to install an svnserve
or Apache to serve as an SVN server. For Windows, etc. visualsvn.com
(server) or CollabNet Subversion Edge might be a good alternative.
精彩评论