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

Re: Compressed Pristines

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Mon, 12 Mar 2012 16:07:57 +0100

On Mon, Mar 12, 2012 at 3:03 PM, Greg Stein <gstein_at_gmail.com> wrote:
>
> On Mar 12, 2012 9:59 AM, "Johan Corveleyn" <jcorvel_at_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
Received on 2012-03-12 16:08:53 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.