30Obtaining a Lock

Files that are tagged with the special svn:needs-lock property are read-only in your working copy. How “read-only” is implemented depends on your operating system. On Windows, a file has a read-only attribute that you can see by right-clicking and choosing Properties. On a Unix system the file’s write flag is disabled, and on a Mac the file will be set to read-only if you look in Finder’s Sharing and Permissions section.

The Subversion client marks files read-only to give you a reminder that you should lock them before making changes. Depending on what software you use to edit the files, you may or may not get some kind of a prompt or warning indicating that the files are read-only. For example, using Paint on Windows to ...

Get Pragmatic Guide to Subversion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.