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
SVN-INJECT(1)							 Command reference						     SVN-INJECT(1)

NAME
svn-inject - puts a Debian source package into Subversion repository SYNOPSIS
svn-inject [options] package.dsc repository_URL OPTIONS
svn-inject accepts the following options on the command-line: -h print the help menu -v Make the command output verbose Default: Off. -q Hide less important messages Default: Off. -l Layout type. 1 (default) means package/{trunk,tags,branches,...} scheme, 2 means the {trunk,tags,branches,...}/package scheme. Default: 1 -t directory Specify the directory where the .orig.tar.gz files are stored on the local machine. Default: Off. -d | --do-like=directory Looks at the working directory of some other package and uses its base URL, tarball storage directory and similar checkout target directory. Default: Off. -c number Checkout nothing (0), trunk directory (1) or everything (2) when the work is done. Default: 1 -o Only keep modified files under SVN control (including the debian/ directory), track only parts of upstream branch Default: Off. -O | --no-branches Do not create the branches subdirectory at all. This works in a similar way to -o but all changes on upstream files (e.g. meta changes like updating the config.guess and config.sub files) are ignored and the upstream branch is not used. Default: use branches/. -s By default, svn-inject used to create .svn/deb-layout after an inject operation if a checkout followed the inject. Since version 0.6.22 this behaviour is deprecated. With this parameter svn-inject will replicate the old behaviour. This option was provided since it can be useful when creating a local override file. Default: Off. -setprops -set-props Set svn-bp:* props on the debian directory automatically. Default: Off. SEE ALSO
/usr/share/doc/svn-buildpackage/() The svn-buildpackage HOWTO manual svn-upgrade(1) upgrade source package from a new upstream revision. svn(1) Subversion command line client tool dpkg-buildpackage(1) Debian source package tools AUTHORS
Eduard Bloch This manual page was written by Eduard Bloch in roff. Goneri Le Bouder Converted manpages to SGML. Neil Williams Converted manpages to DocBook XML and current Debian maintainer COPYRIGHT
Copyright (C) 2009 Eduard Bloch Release: 0.8.2 May 2009 SVN-INJECT(1)
All times are GMT -4. The time now is 08:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy