Sorry if this is a duplicate, I didn’t find the right answer still..
How do you lock a svn directory from command line? I need to lock a branch from checkins
Edit:
All of these answers I've found require the person to access the svn server. Thats not an option for me. I work in a company where the source control machine is literally locked in a vault. Gainning access to change auth rules is a process I can't work out ATM.
You can't lock a directory. You can create authorization rules that will prohibit write access to directories. This is typically how this type of thing is done. You could also use a pre-commit hook but I think Subversion's authz is best. Here is a link:
http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html
I recently solved this by a solution inspired by http://www.noah.org/engineering/olden/svn_directory_lock.html
The particular python script in that post is overkill, but I put the following in the pre-commit hook for my repsoitory:
So now, you can simply use the "svn propset" and commit to create a "lock" property for a directory that you want to lock.