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

Re: Should svn:eol-style=native ignore new line characters in quotes

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2007-11-20 16:14:53 CET

On 11/20/07, James Hartleroad <jhartleroad11@gmail.com> wrote:
> We have the svn:eol-style property set to native for UNIX shell scripts and
> have come across an issue where a '^M' character in a sed statement throws a
> Inconsistent line ending style error.
> For example sed 's/^M//g:/\$\$END/d;/^[].....'
> Shouldn't the functionally of the svn:eol-style code ignore new line
> characters that are in single or double quotes, since the are not new line
> characters for that file?

No, Subversion doesn't know what 'intented' and 'unintended' newline
characters are. Nor is it programming language sensitive.

> Has anyone else ran into this issue, if so what are some of the workarounds?

There are none on the side of Subversion. You may want to change the
regex to use the text character representation of ^M (something like



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 20 16:15:31 2007

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.