delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/26/12:12:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <417E7748.A102F426@hot.pl>
Date: Tue, 26 Oct 2004 18:11:52 +0200
From: Jacek Trzmiel <sc0rp AT hot DOT pl>
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Subversion: Bad handling of svn:eol-style native on textmode mounts
X-IsSubscribed: yes

svn checkout of file with svn:eol-style set to native does create:
a) on binary mount - file with unix endlines,
b) on text mode mount -  also file with unix endlines.

I assume that correct behaviour in second case should be to create file
with windows endlines.  Is my assumption correct, and there is a bug in
subversion port?

Steps to reproduce below.


svn 1.0.6, cygwin1.dll 1.5.11-1, win2ksp4+patches

###################################
### create test repository
### /cygdrive/d/ - binary mount

$ mkdir -p /cygdrive/d/svn
$ svnadmin create /cygdrive/d/svn/repo
$ mkdir -p /cygdrive/d/test
$ cd /cygdrive/d/test
$ svn co file:///cygdrive/d/svn/repo .
Checked out revision 0.

$ echo "test" >file
$ dump file
file:

  Addr     0 1  2 3  4 5  6 7  8 9  A B  C D  E F 0 2 4 6 8 A C E 
--------  ---- ---- ---- ---- ---- ---- ---- ---- ----------------
00000000  7465 7374 0a                            test.

$ svn add file
A         file

$ svn propset svn:eol-style native file
property 'svn:eol-style' set on 'file'

$ svn ci -m "Added file."
Adding         file
Transmitting file data .
Committed revision 1.


############################
### /work/test2 - text mount

$ mkdir -p /work/test2
$ cd /work/test2
$ svn co file:///cygdrive/d/svn/repo .
A  file
Checked out revision 1.

$ dump file
file:

  Addr     0 1  2 3  4 5  6 7  8 9  A B  C D  E F 0 2 4 6 8 A C E 
--------  ---- ---- ---- ---- ---- ---- ---- ---- ----------------
00000000  7465 7374 0a                            test.


Best regards,
Jacek.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019