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
31Releasing a Lock

After locking a file, you might change your mind and decide not to modify it. Subversion releases all the locks in a working copy when you commit a change, but if you’re not going to check in for a while, it would probably be polite to release the lock straightaway so someone else can lock the file if they need to do so.

Subversion will happily let you release a lock even if you have modified the locked file. If you later check in changes to the unlocked file, you have essentially avoided Subversion’s locking mechanism. This is bad news. Someone else could edit the file in the meantime, and your commit could force them to redo their work. You should always revert changes to a file when you release a lock.

  • Unlock a file. ...
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