On Mon, Mar 12, 2012 at 3:03 PM, Greg Stein <gst...@gmail.com> wrote:
>
> On Mar 12, 2012 9:59 AM, "Johan Corveleyn" <jcor...@gmail.com> wrote:
>>...
>
>
>> (BTW: the pristine file (on Windows) only has LF line-endings when
>> svn:eol-style=native (or =LF). When it's svn:eol-style=CRLF, the
>> pristine file has CRLF (as does the file in the repository))
>
> Has nothing to do with the property. The pristine matches the repository,
> byte for byte. The file installed in the working copy is affected by the
> property; not the pristine.

Yes, the pristine matches the repository. But what I mean is:

(on Windows):
$ create file-with-crlf.txt
$ svn add file-with-crlf.txt
$ svn ps svn:eol-style native file-with-crlf.txt
$ svn commit -mm file-with-crlf.txt

-> pristine file is LF-terminated (as is the file in the repos, as you
point out).

$ create file-with-crlf.txt
$ svn add file-with-crlf.txt
$ svn commit -mm file-with-crlf.txt

-> pristine file CRLF-terminated.

$ create file-with-crlf.txt
$ svn add file-with-crlf.txt
$ svn ps svn:eol-style CRLF file-with-crlf.txt
$ svn commit -mm file-with-crlf.txt

-> pristine file CRLF-terminated.

$ create file-with-crlf.txt
$ svn add file-with-crlf.txt
$ svn ps svn:eol-style LF file-with-crlf.txt
$ svn commit -mm file-with-crlf.txt

-> pristine file is LF-terminated (as is the working-copy file).

-- 
Johan

Reply via email to