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

Re: Committing HTML files gives 'inconsistent newlines' error

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Wed, 18 Jun 2008 17:31:20 -0500

On Jun 17, 2008, at 8:41 AM, Vivek Payala wrote:

> While committing the locally updated javadocs to the SVN repository
> using TortoiseSVN, I am facing the following error,
>
> Error: Commit failed (details follow):
> Error: File 'F:\svn_roots\clientapi\doc\apidoc\index-all.html' has
> inconsistent newlines
> Error: Inconsistent line ending style
>
> We use Eclipse as the editor. And the files on which the error is
> coming are HTML files. As they are java docs it gets updated after
> every build, and we then need to check it in SVN. If I remove the
> svn:eol style property which is currently set to ‘native’ on these
> HTML files, the commit goes through. Is removing this property a
> solution to it?

If you want Subversion to change the line endings (which you've
requested by setting svn:eol-style) then the file must already have
consistent line endings (all LF, or all CRLF, or all CR) but your
file has a mix of line ending styles. You need to either make the
line endings in the file consistent, or remove the svn:eol-style
property.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-19 00:31:50 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.