[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: converting from SVN to CVS

From: Bob Archer <bob.archer_at_amsi.com>
Date: Wed, 28 Jan 2009 10:33:55 -0500

> It would be nice to be able to configure the server to say "If a file
> ends in these suffixes, it is a text file, store the file with Unix
> line endings and if you see a lone CR, a CRLF, or a LF, convert it to
> LF. Then, when the client checks out the file, it would convert the
> Unix line endings to whatever it wants.

That's pretty much how it works. But, it doesn't use file names.
Basically if you don't set a mime type svn assumes it is a text file.

Also, svn always stores text files with LF as the only line ending. From
the svn book:

"Note that Subversion will actually store the file in the repository
using normalized LF EOL markers regardless of the operating system. This
is basically transparent to the user, though."

For more info read these topics in the svn manual:

http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.advanced.props.spec
ial.mime-type

http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.advanced.props.spec
ial.eol-style

BOb

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1063460

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-28 16:35:53 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.