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

svn hookscripts and EOL-replacement

From: <Lutz.Dornbusch_at_fiducia.de>
Date: 2007-05-30 18:56:12 CEST

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
----------------------------------------------------------------------------------------------------------------------------------------------
Received on Thu May 31 01:33:13 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.