How to give file level rights with SVN server
I am currently using SVN for Source Control (Visual SVN server + tortoise SVN) and we are starting a new project in a large team.
I was wondering how to give commit rights on specific files or folder to a particular user. We have given responsibilities for different modules to different developers, and management was wondering if it is possible to restrict a developer to commit to only his module.
I saw that a comment to this answer mentions that it is poss开发者_如何转开发ible with Visual SVN, but I haven't been able to do so.
Subversion provides you the option to use path based authorization. That means, you may configure it that users have read, read-write or no access rights to read and write files in a specific directory. This is done on a per-repository base.
The following resources will help you find your way:
- VisualSVN Server: Understand Access Rights
- Path based Authorization in Subversion
The first one is very concrete and tells you the rules in the context of VisualSVN Server, the second one is more abstract, but gives you complete background and explanation (and some discussion why restricting developers is no good idea at all).
One final remark: Are you sure that you will never ever need the right to change code in other modules? Refactoring, errors that hinder yourself to do the job, ...?
精彩评论