[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn hookscripts and EOL-replacement

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-05-31 01:50:46 CEST

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
Received on Thu May 31 01:51:09 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.