--- Les Mikesell <lesmikesell@gmail.com> wrote:
> Frodak wrote:
>
> >>> So how many EOLs are their in "\r\n\r\n\n" is
> that
> >> 3,
> >
> > You've disregarded that the file could have mixed
> EOLs
> > from Mac and Unix, only. There for a \r is a new
> > line, and \n is a new line, and therefore had 5
> > newlines.
>
> That's pretty farfetched.... Why would something
> that didn't recognize
> the original EOL put its own EOL anywhere nearby?
> If you have binary
> transparent file access, you might concatenate
> several files from
> different sources and have different sections with
> different styles, though.
This can happen through broken tools, or through the
process you just stated. As far as I'm concerned, I
really don't care how it happens, but I do acknowledge
the fact that it can. Even though it is a
far-fetched, the above is an example of how one can
misinterpret the number of EOLs that was intended.
> > You've assumed to interpret \r\n as a
> > single new line as in DOS.
>
> And you have yet to suggest a better tool than svn
> to perform this
> operation correctly.
I've already posted how I handle this. For you
pleasure I'll state it again: tr, sed, perl or any
other tool that can manipulate text can modify the
file. Depending upon the kind of content I'll modify
the file in the most appropriate matter.
> > My point is that the number of new lines in a
> mixed
> > EOL format is open to interpretation. Plain and
> > simple.
>
> And??? Let's interpret it then and move on.
Yes do so, but I don't think that subversion is the
correct tool to do so. When I import a text file in
subversion I want to be sure that it properly tracks
the number of EOLs when it is imported. Because in a
mixed EOL file you can't accurately determine the
numbers of EOLs, it reject the file. Makes perfect
sense to me. I'm fine with this. When I add the
svn:eol-style to the file, it even reports to me that
it can't accurately determine the count. This is not
something I want my change control tool to lie about.
What I want is accuracy. You don't. Just stop
pretending that it can do it accurately.
____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 5 18:52:29 2007