Sponsored Content
Top Forums UNIX for Advanced & Expert Users svn checkout failes to add corret EOL on windows machine Post 302298613 by +Yan on Wednesday 18th of March 2009 05:56:54 AM
Old 03-18-2009
Bug svn checkout failes to add corret EOL on windows machine

Hello,
We are using svn client version 1.5.6. I was able to setup svn server on linux server successfully. The server is working fine for linux machies. I.e. if they checkout/checkin source code, the line endings are unix style. The problem comes when the source is checkouted on Windows machine. SVN client does not automatically add 0xd at the end of line. Instead of that the line ending is unix style - 0xa . I tried to change config file in this way:

[miscellany]
enable-auto-props = yes

[auto-props]
*.PL = svn:eol-style=native
*.pl = svn:eol-style=native
*.cpp = svn:eol-style=native
*.c = svn:eol-style=native
*.h = svn:eol-style=native
*.dsp = svn:eol-style=native
*.dsw = svn:eol-style=native
*.sh = svn:eol-style=native;svn:executable
*.SH = svn:eol-style=native;svn:executable
*.txt = svn:eol-style=native
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
Makefile = svn:eol-style=native

But it looks like this is used when I commit or import files onlyn
When I checkout source files (.c for example) they have incorrect EOL.

Searching the net I found another approach:
svn propset -R svn:eol-style native .
This command is valid only if:
1. I checkout the sources.
2. change to work directory.
3. execute the command.
4. delete checkout-ed files without deleting .svn directories or their content.
5. execute svn update. In this case EOL's are ok.

My question is quite simple.
Is there any easy way to tell svn client to add correct EOL symbols when I'm checkouting source, and restoring the EOL to original one when I'm committing the source ?
I know that there are external programs that can do the conversion, but I would like to avoid this.

--
Thank you in advance for your answers.
 

10 More Discussions You Might Find Interesting

1. IP Networking

Dialing up to a Windows machine

Hello! I have two machines one running Windows XP which is hooked up to my ADSL line and the other is my Linux machine. I want to be able to dial-up to my Windows machine from my Linux one and be able to use the internet. I would like to do this because it would allow me not to have a dial-up... (1 Reply)
Discussion started by: vertigo
1 Replies

2. Solaris

Best possible communication mechanism between a Solaris machine and a windows machine

hi, I have some windows client machines which require a signal to be sent by a Solaris machine( SunOS 5.6) when ever a particular event occurs on that Solaris machine. What are possible communication mechanisms by which i can do this. the constraints are > the windows machines have to... (7 Replies)
Discussion started by: Krsh
7 Replies

3. Shell Programming and Scripting

SSH into a linux machine from a windows machine

I basically want to login into different linux machines( on the same network) from a windows machine. I know i can use ssh <machine name>. But i want to automate this process. I dont want to enter the username and password. Is there any way to do it. Can i make some sort of a batch script for it. (4 Replies)
Discussion started by: lassimanji
4 Replies

4. Solaris

accessing windows machine

hi , Please tell me how can i access windows machine from solaris OS.how can i share one drive or folder in windows for solaris please give me the step whatever it required thanks to all (1 Reply)
Discussion started by: sijocg
1 Replies

5. Shell Programming and Scripting

How to checkout from SVN using Terminal in Mac OS X?

Hi, I am new for SVN. Earlier I have been using CVS. When I checkout the code from SVN using Eclipse, the size of the source code checked out is 612MB. But when I try to checkout from terminal, from my 5.8 branch , the checked out source code's size is only 312.1 MB. Can anyone tell me... (0 Replies)
Discussion started by: Afreen
0 Replies

6. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

7. Windows & DOS: Issues & Discussions

How to use windows machine when not in use

Hi, I use my laptop intermittlently.Is it good practice to keep my laptop in sleep mode when not in use and at the end of the day turn it off completely. Please advice. I am using windows xp . Regards, Maddy (1 Reply)
Discussion started by: Maddy123
1 Replies

8. Solaris

How to integrate SVN client to SVN server repository.

Hi, I am new to SVN configuration on Solaris 10.I have installed SVN client version 1.7. bash-3.00# ./svn --version svn, version 1.7.4 (r1295709) compiled Mar 2 2012, 12:59:36 Here my requirement is how to integrate svn client to One of the SVN server repository. My repository... (0 Replies)
Discussion started by: muraliinfy04
0 Replies

9. Shell Programming and Scripting

Making post down hook script for svn regarding sending emails after an file is committed in svn

Hi Folks , I am asking this question but i apologise please if this is not the correct forum , I have to develop a shell script that i want to place in at hooks/post-commit , that is basically i have to develop a post hook script and the main functionality of that script would be lets say if... (0 Replies)
Discussion started by: sunsun06060606
0 Replies

10. UNIX for Beginners Questions & Answers

Problems with SVN checkout

I am trying to figure out why, when I checkout this repository, I am not receiving a .svn folder. I have two machines. On one machine if I checkout the repository it checks out with a .svn folder and on the other machine I do the same and it: requires a password and does not give me a .svn folder.... (1 Reply)
Discussion started by: Circuits
1 Replies
SVNPATH(1)																SVNPATH(1)

NAME
svnpath - output svn url with support for tags and branches SYNOPSIS
svnpath svnpath tags svnpath branches svnpath trunk DESCRIPTION
svnpath is intended to be run in a Subversion working copy. In its simplest usage, svnpath with no parameters outputs the svn url for the repository associated with the working copy. If a parameter is given, svnpath attempts to instead output the url that would be used for the tags, branches, or trunk. This will only work if it's run in the top-level directory that is subject to tagging or branching. For example, if you want to tag what's checked into Subversion as version 1.0, you could use a command like this: svn cp $(svnpath) $(svnpath tags)/1.0 That's much easier than using svn info to look up the repository url and manually modifying it to derive the url to use for the tag, and typing in something like this: svn cp svn+ssh://my.server.example/svn/project/trunk svn+ssh://my.server.example/svn/project/tags/1.0 svnpath uses a simple heuristic to convert between the trunk, tags, and branches paths. It replaces the first occurrence of trunk, tags, or branches with the name of what you're looking for. This will work ok for most typical Subversion repository layouts. If you have an atypical layout and it does not work, you can add a ~/.svnpath file. This file is perl code, which can modify the path in $url. For example, the author uses this file: #!/usr/bin/perl # svnpath personal override file # For d-i I sometimes work from a full d-i tree branch. Remove that from # the path to get regular tags or branches directories. $url=~s!d-i/(rc|beta)[0-9]+/!!; $url=~s!d-i/sarge/!!; 1 LICENSE
GPL version 2 or later AUTHOR
Joey Hess <joey@kitenet.net> Debian Utilities 2013-12-23 SVNPATH(1)
All times are GMT -4. The time now is 09:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy