You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "Dan Harvey (JIRA)" <ji...@apache.org> on 2007/07/24 15:18:31 UTC
[jira] Commented: (WODEN-166) Use svn:eol-style=native
[ https://issues.apache.org/jira/browse/WODEN-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514962 ]
Dan Harvey commented on WODEN-166:
----------------------------------
The command:
svn propset -R svn:eol-style native *
Will set the svn:eol-style property to native on all text files where it is run. This will only set the property on text files as when you run add or import svn will set the svn:mime-type property to application/octet-stream if it think its not a text file [1].
This will not work straight away as we have some files which used mixed eol style files and svn wants these to be just one eol style before it will set the property. Eclipse can do this with File -> Convert Line Delimiters to -> ... if svn complains about a file.
I think that everyone will have to checkout the repository again to make sure all their local text files are in their native eol style. I'm not sure what will happen if you use this setting and used non native eol style as Eclipse will do as it uses what ever eol style it finds in a file.
-- Secondly.
The svn config file is kept in ~/.subversion/config on unix and in the registry on windows [2]. I've attached a example config and reg file to use the auto-props setting on a few file types I think are most of the ones we will be using. (though I've only tested the reg file)
The only problem with using auto-props is it will be enabled for all projects you use subversion on...
Maybe this should be documented on the version control section of our website?
[1] http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.4
[2] http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1
> Use svn:eol-style=native
> ------------------------
>
> Key: WODEN-166
> URL: https://issues.apache.org/jira/browse/WODEN-166
> Project: Woden
> Issue Type: Bug
> Affects Versions: M7a
> Reporter: Jeremy Hughes
> Priority: Minor
> Attachments: auto-props.reg
>
>
> The default SVN client config is to have auto-props turned off and svn:eol-style is not set by default. For .java .xml .wsdl and other text files it is preferrable to have svn:eol-style set to native so that checking in text files on windows or linux doesn't cause a change in the representation of the 'newline' e.g. LF, CRLF (and CR I think for Mac). We should change the svn:eol-style property on text files to prevent LF/CRLF whitespace issues.
> See this thread: http://mail-archives.apache.org/mod_mbox/ws-woden-dev/200707.mbox/%3cadbf02b10707100612j2fae5d14q184a09c3219dfdd3@mail.gmail.com%3e
> We should also encourage developers to use auto-props in the SVN client config file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org