You can set properties (meta-data) on items. Properties are arbitrary
name/value pairs associated with files and directories in your working
copy. For more information see the subversion book.
The special properties supported by subversion are
- svn:eol-style Possible values are native, CRLF, LF,
CR
- svn:executable is used to define whether a file is an
executable or not.
- svn:externals Read documentation, this is, I think, a
wonderful thing. Use this to make subversion automagically checkout
stuff from other locations/repositories within your subversioned
structure.
- svn:ignore is a nice way to add a property to a
directory that contains files not under subversion control to avoid
cluttering when using svn status.
- svn:keywords is used to define whether you want
subversion to perform keyword substitution. Where the keyword is
inserted in your files is controlled by a keyword anchor,
$KeywordName$. Supported keywords are
- HeadURL or URL
- Id
- LastChangedBy or Author
- LastChangedDate or Date.
- LastChangedRevision or Revision or Rev
To set the svn:keywords property do something like
svn propset svn:keywords
"LastChangedDate Author" filename
- svn:mime-type is used to set the mime-type of a file.
To set or get a property name, use the svn propset and
svn propget sub-commands. To list all properties on an
object, use svn proplist.
Subversion provides some automatic property setting when you do
svn add or svn import, e.g. if subversion thinks
you are adding a binary file, the svn:mime-type is set to
application/octet-stream (alas the general binary mime
type). Subversion does not try to do smarter, i.e., figure out that a
file is a png graphics which should have mime type
image/png). However, you can affect the way subversion sets
properties automatically by changing your config file. You can
make subversion to recognise a pattern like *.jpg, and consequently
set the mime property to image/jpeg. We supply a set of
options to add into your config file in
Appendix F.