This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Subversion: Bad handling of svn:eol-style native on textmode mounts
- From: Jacek Trzmiel <sc0rp at hot dot pl>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 26 Oct 2004 18:11:52 +0200
- Subject: Subversion: Bad handling of svn:eol-style native on textmode mounts
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/