Special File Properties
Subversion allows you to associate
properties with files or directories. A
property is just a keyword/value pair associated with the file.
Subversion reserves property names starting with svn: for its own use. The special
properties in Subversion 1.0 are:
-
svn:author The username of the person who committed a particular revision.
-
svn:date The date when the transaction for a revision was created.
-
svn:eol-style Different operating systems use different conventions to mark the end of lines in text files. Unix and its workalikes use a single ASCII line-feed character (LF) to end lines. MS Windows systems use a Carriage Return + Line Feed combination (CRLF), and older Macintosh systems use a single Carriage Return (CR). This can cause problems when a Windows user stores a new revision of the file: suddenly a Unix user who does a checkout sees a file with extraneous Carriage Return characters at the end of every line. The
svn:eol-styleattribute solves this problem. It should be set to one of the following values:CRClients should always use CR line terminators, no matter what the native format is.
CRLFClients should always use CR-LF line terminators, no matter what the native format is.
LFClients should always use LF line terminators, no matter what the native format is.
nativeClients should use the native format when checking out files.
Subversion always stores files in normalized, LF-only format in the repository.
-
svn:executable Valid only ...
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.
Read now
Unlock full access