One of them is the line ending problem. But there is a solution, provided by SVN: It can store the line endings in unix format internally but your checkout will always have native style (cr+lf on windows for example).
However this feature can not be enabled server-side, but there is an automatic solution for the client.
The catch is that you need to enable it first by editing your svn config file. Look for "enable-auto-props" and set it to "yes" with a "=": "enable-auto-props = yes".
Then in the "[auto-props]" section, you can add wildcard matches for specific files. For instance there should already be a line "*.c = svn:eol-style=native".
I recommend the following settings:
Code: Select all
### 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.
[auto-props]
### 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.
*.c = svn:eol-style=native
*.cc = svn:eol-style=native
*.cpp = svn:eol-style=native
*.h = svn:eol-style=native
*.hpp = svn:eol-style=native
*.txt = svn:eol-style=native
*.cmake = svn:eol-style=native
*.oxw = svn:eol-style=native
*.oxo = svn:eol-style=native
*.ini = svn:eol-style=native
*.cfg = svn:eol-style=native
*.bat = svn:eol-style=native
*.pkg = svn:eol-style=native
*.tcl = svn:eol-style=native
*.bat = svn:eol-style=native
*.sln = svn:eol-style=native
*.vsprops = svn:eol-style=native
*.vcproj = svn:eol-style=native
*.vcproj.user = svn:eol-style=native
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
*.tga = svn:mime-type=image/tga
So: Please configure your client to automatically add the "svn:eol-style native" property to all newly added files. Thank you.