tags:

views:

103

answers:

3

Can't find an answer to my exact question. We migrated to a different source control system and want to keep a read-only snapshot of the entire repository. No one should be able to commit any changes anywhere. Is there a way to do this?

+3  A: 

Just update your authz file to

# give everyone read-only access to the entire repository
[reponame:/]
* = r
Michael Hackner
A: 

This solution works only for svnserve, but not for apache-powered subversion servers.

Stefan Brozinski
A: 

You can create a hook to do this:

repository/hooks/pre-commit

#!/bin/sh
echo "No more commit here - this is an archive branch"
exit 1
Romuald Brunet