Properties are a powerful feature of Subversion, acting as key components of many Subversion features discussed elsewhere in this and other chapters: textual diff and merge support, keyword substitution, newline translation, and so on. But to get the full benefit of properties, they must be set on the right files and directories. Unfortunately, that step can be easily forgotten in the routine of things, especially since failing to set a property doesn’t usually result in an obvious error (at least compared to, say, failing to add a file to version control). To help your properties get applied to the places that need them, Subversion provides a couple of simple but useful features.
Whenever you introduce a file to version control using the svn add or
svn import commands, Subversion tries
to assist by setting some common file properties automatically. First,
on operating systems whose filesystems support an execute permission
bit, Subversion will automatically set the
property on newly added or imported files whose execute bit is enabled.
(See File Executability later in
this chapter for more about this property.)
Second, Subversion tries to determine the file’s MIME type. If you’ve configured a
mime-types-files runtime configuration
parameter, Subversion will try to find a MIME type mapping in that file
for your file’s extension. If it finds such a mapping, it will set your
svn:mime-type property to the MIME type it found. If no mapping ...