I'm using SVNKit to programatically interact with an SVN server. At some point I need to prevent any further changes to a repository directory. My intial idea was to do this using a lock, but then I discovered that SVN locks are breakable (and stealable), but I need to really enforce that the directory cannot be modified. I know that I could make the locks unbreakable by writing a hook script, but this will complicate deployment, and introduce platform-specific dependencies.
My next idea is to solve this problem by changing the permissions on the directory that needs to be locked down. I'm able to do this using the VisualSVN server management console, but I haven't found any way to do this via the SVNKit API. Is this feature exposed via the API, and if not, is there another way to lock down the directory?
Thanks!