svnfsfs

SVN how to set a FSFS repository to be read only?


I have a couple of FSFS based file system SVN repositories that I wish to switch to be read only. Is there a flag I can enable that will stop svn clients from writing to the repository?

Alternatively I could simply remove all write permissions from the folder, but that feels overkill.


Solution

  • Use svnadmin freeze to make your repos read-only or configure user or filesystem permissions so that noone could commit. Proper approach depends on the actual task you have but I guess that svnadmin freeze should help you in most cases.

    svnadmin freeze is available starting with Subversion 1.8. Make sure that your Subversion is up-to-date.