lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <>
Subject Re: contrib/benchmark - DOS line endings
Date Tue, 03 Apr 2007 00:50:03 GMT

Otis Gospodnetic <> wrote on 02/04/2007 16:35:42:

> Yeah, I was just wondering if there was a SVN-only trick to get that
> propset working.  Anyhow, this did the trick:
> find . -name \*java -type f | xargs perl -pi -e 's/(\r\n|\n|\r)/\n/g'
> find . -name \*java -type f | xargs svn propset svn:eol-style native
> Otis
> P.S.
> Doron: I just happened to see ^Ms when editing one of the .java
> files with vi.:wq

I wonder how we can avoid this again.
I checked on and at least for this file, wrong eols
appeared first in revision 520890 (LUCENE-837).
Files were created with svn:eol-style=native.
To my understanding this means when you svn-checkout them the eol-style is
set to whatever system you are using.
And when you svn-checkin, well, if there is a eol inconsistency, svn
complains, and you have to fix it (locally). Once fixed, and you checkin, I
thought svn:eol-style=native was supposed to make it all work correctly.
Beats me.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message