| 29 | Enabling File Locking |
Subversion file locking is supported on all files within the repository, so a user can in theory lock a file at any time. When someone else tries to commit a change to the locked file, Subversion will reject the change because the file is locked. This isn’t very useful, though, because someone could have done a bunch of work that they now need to throw away because someone else has locked the file. A much better solution would be to stop a user from editing a file unless they have a lock on it in the first place.
Subversion’s advisory locking is enabled by setting the special svn:needs-lock property on a file. It doesn’t matter what value the property is set to; if the property is present, the file has locking enabled. ...