tags:

views:

148

answers:

2

We are moving to SVN and need to prevent commits to specific directories/modules within the CVS repository. What is the best way of doing this?

I have currently set the filesystem permissions for this directory to read-only and seems to do the job for now - but is there a 'cvs' way of doing this?

Also, can I make a specific branch read-only?

+1  A: 

You may be able to achieve this by creating a pre-commit hook to disallow checkins on the branch, eg see here

[edited following Ray's comment]

the_mandrill
You'd want a pre-commit hook to prevent adding changes to a branch. A post-commit hook is how to trigger something afterwards.
Ray Hayes
Oops, yes, well spotted!
the_mandrill
+1  A: 

You can use cvs_acls, which comes with the CVS distribution. It allows you to define branch-level permissions for commits.

JW