Skip to Main Content
Pragmatic Guide to Subversion
book

Pragmatic Guide to Subversion

by Mike Mason
November 2010
Intermediate to advanced content levelIntermediate to advanced
150 pages
2h 55m
English
Pragmatic Bookshelf
Content preview from Pragmatic Guide to Subversion
29Enabling 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. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick

Publisher Resources

ISBN: 9781680500035Errata Page