LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SVN File type DOS (https://www.linuxquestions.org/questions/linux-newbie-8/svn-file-type-dos-627776/)

haiders 03-13-2008 10:14 AM

SVN File type DOS
 
I have SVN 1.4.3 running on my RH linux server and was wondering, is there a way to automate all files in my repository to be converted to DOS format? For existing files and when new files are checked in they are converted as well?

Thanks for the help!

Tinkster 03-13-2008 12:27 PM

May I ask why you'd want to do that? Seems a bit odd to me.
As far as I'm concerned it would be the task of the client
on the DOS/Windows side to take care of line-endings for you.


Cheers,
Tink

haiders 03-13-2008 03:41 PM

Thanks for the reply Tinkster. I was able to figure it out. The developers are working off of their windows workstations and are checking in content using tortoise. I had to enable "auto-props" and edit the config file on the tortoise client under settings by uncommenting the following:

# *.dsp = svn:eol-style=CRLF
# *.dsw = svn:eol-style=CRLF

By default it uses native style.

Tinkster 03-13-2008 03:54 PM

So you didn't need to proceed with the idea of changing SVNs default behaviour on
the server side? Good news :}

Btw, even w/o DOS line-ends: even a stupid editor like WordPad can quite happily read
and save files with Linux-line-ends ... so I'm really not sure why you had issues in
the first place.


Cheers,
Tink

haiders 03-27-2008 11:15 AM

Yes, I'm glad I didn't have to make changes on the server side!.
I'm really not a developer so I'm not sure why they needed to have the DOS format. I assume they had valid reason. I will ask them though. Thanks for your help w/this.


All times are GMT -5. The time now is 11:11 PM.