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

RE: What do you Hate about Subversion?

From: Mark Moore <mark.moore_at_notlimited.com>
Date: 2007-01-31 23:16:59 CET

Jeff,

I like your suggestion to convert EOL's to a single style if and only if the
application needs to add an EOL to the file (or stream more generally).

In addition, I'd prefer it use the detected EOL style in the file -
regardless of the platform, unless the file has inconsistent EOL's.

In the inconsistent EOL case the application should normalize all EOL's to a
single user specified style that defaults to the platform style.

One other thing I'd add is that it emit a warning or log entry if EOL
normalization is performed so the condition can be automatically monitored.

That would be nice.

-MM

> -----Original Message-----
> From: Jeff Smith [mailto:jsmith@robotronics.com]
> Sent: Wednesday, January 31, 2007 1:10 PM
> To: users@subversion.tigris.org
> Subject: Re: What do you Hate about Subversion?
>
> On Tuesday 30 January 2007 13:01, Duncan Murdoch wrote:
> > No, the projects I work on are mainly cross-platform ones.  I'm
> > working on Windows, but writing code to be portable.  The tools I
> > like to work with don't care about EOL markers, they work
> > regardless of where the file came from.  (In the main project we've
> > settled on Unix-style EOL markers for all files.)
>
> Not to accuse you, but I'm assuming the main problem is caused by
> certain "don't care" applications. I think any modern editor/viewer
> should be able to read in all EOL styles, even mixed. The problem
> with not caring is if editing the file CREATES the mixed EOL styles
> (i.e. adds a CR alone to file that already was using CRLF). I don't
> care as much if the editor detects original style (preferred), but it
> really should at least write using only one (perhaps the native
> style).
>
> Upon saving, any editor should decide right there whether to force to
> one or the other style, NOT mixed.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 31 23:18:54 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.