Folks:
svn is a little different from cvs in that you need to explicitly
tell it for each file how to treat line endings, and whether or not
to expand keywords. This is done through the svn properties svn:eol-
style and svn:keywords applied to each file.
You can set these properties explicitly on a file:
svn propset svn:eol-style "native" <filename>...
svn propset svn:keywords "Author Date Id Revision" <filename>...
Luckily, you can also set your svn config (for the command line
client) in ~/.subversion/config to tell it to automatically apply
these properties to files matching a pattern. I would recommend you
do this, as it is otherwise easy to forget to set the properties.
-jdb
Appropriate sections of my config file are:
### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes
### Section for configuring automatic properties.
### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?'). All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.
[auto-props]
*.c = svn:eol-style=native; svn:keywords=Author Date Id Revision
*.cpp = svn:eol-style=native; svn:keywords=Author Date Id Revision
*.h = svn:eol-style=native; svn:keywords=Author Date Id Revision
*.hpp = svn:eol-style=native; svn:keywords=Author Date Id Revision
*.dsp = svn:eol-style=CRLF; svn:keywords=Author Date Id Revision
*.dsw = svn:eol-style=CRLF; svn:keywords=Author Date Id Revision
*.m4 = svn:eol-style=native; svn:keywords=Author Date Id Revision
*.sh = svn:eol-style=native; svn:keywords=Author Date Id Revision;
svn:executable
*.txt = svn:eol-style=native; svn:keywords=Author Date Id Revision
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
Makefile = svn:eol-style=native;svn:keywords=Author Date Id Revision
Makefile.* = svn:eol-style=native;svn:keywords=Author Date Id
Revision
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]