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

Re: CRLF ending in the svn dump file

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 23 Sep 2009 11:05:24 -0400

There might be ways to remove the <CRLF> line endings during a dump/load,
but there is also a good chance that you'll break earlier revisions of your
releases. For example, if you package your files with a checksum, that could
be changed by converting the <CRLF> to a <LF>.

It also might be entirely unnecessary too. Some files such as Java files and
XML files can use either line ending. Unless you are talking about things
like shell scripts or Unix Makefiles, there is no reason to bother with the
conversion.

Don 't bother with the eol-style line change during the conversion, but
modify the line endings once the conversion is completed. This would
involve:

1). Checkout of all files
2). Examining which ones are truly text based
3). Using a program like dos2unix to convert them.
4). Adding the property svn:eol-style property with the appropriate value
(either "native" or "LF)
5). Then committing those changes with a clear description of the type of
changes that were made.

You would also create a pre-commit trigger to make sure that the
svn:eol-style property stays on these files and is added to any new files.

This way, your Subversion repository still matches your VSS repository
(which is what you want), and you'll have a commit transaction that will
help you mark that files were modified to change their line endings.

I did something similar when I did our conversion from CVS to SVN. However,
I only bothered with shell scripts, Perl scripts, and other files that had
to have the correct EOL style line ending.

On Tue, Sep 22, 2009 at 5:59 PM, poonam ahuja <poonamah_at_yahoo.com> wrote:

> I am converting a repository from VSS to svn. The svn dump that is created
> has CRLF ending for most of the text files (svn:eol-style is not set for
> these files). I am exploring options in the conversion routine to correct
> this. However, in case this doesn't work, is there any option to do the
> same after the svn dump creation?
>

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2398934
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-23 17:06:39 CEST

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.