You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lu...@fiducia.de on 2007/05/30 16:56:12 UTC

svn hookscripts and EOL-replacement

Hello list

We currently runned into a few problems with subversion hooks [pre-commit] 
and EOL-issues.

We are parsing a checked in file (line by line) and see that there are 
windows EOLs inside the file. As we are running our server on solaris we 
were not expecting this particular EOL and our hook script failed.

If I set the property svn:eol-style to LF (for example), will the EOL be 
replaced.

My Question:
What EOL will my hook script see? the clients EOL, or the replaced EOL?

What is the best solution for handling EOL-dependent data in hook scripts?

Thanx for your time,

Lutz 



---------------------------------------------------------------------------------------------------------------------------------------------- 
FIDUCIA IT AG 
Fiduciastraße 20 
76227 Karlsruhe 

Sitz der Gesellschaft: Karlsruhe 
AG Mannheim HRB 100059 

Vorsitzender des Aufsichtsrats: Erwin Kuhn 
Vorsitzender des Vorstands: Michael Krings 
Vorstand: Klaus-Peter Bruns, Hans-Peter Straberger, Eckhardt Werner 

Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de 
---------------------------------------------------------------------------------------------------------------------------------------------- 

Re: svn hookscripts and EOL-replacement

Posted by Karl Fogel <kf...@red-bean.com>.
Lutz.Dornbusch@fiducia.de writes:
> We currently runned into a few problems with subversion hooks [pre-commit] and
> EOL-issues.
>
> We are parsing a checked in file (line by line) and see that there are windows
> EOLs inside the file. As we are running our server on solaris we were not
> expecting this particular EOL and our hook script failed.
>
> If I set the property svn:eol-style to LF (for example), will the EOL be
> replaced.
>
> My Question:
> What EOL will my hook script see? the clients EOL, or the replaced EOL?
>
> What is the best solution for handling EOL-dependent data in hook scripts?

I believe the hook scripts see the "repository normal form" of the
file, which (in the case of svn:eol-style=LF) should be LF.  You might
try experimenting to make sure.

-Karl

-- 
Subversion support & consulting  <>  http://producingoss.com/consulting.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org