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

Re: quick question about eol-style

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Tue, 24 Nov 2009 10:52:49 +0300

Greetings, Tucker!

>>> I'm having a discussion with the SVN admin at my company about
>>> whether or not you can set eol-style site wide. He thinks that you can
>>> only do it via $HOME/.subversion/config or per file. I get the impression
>>> that we can do this in /etc/subversion/config, on the server sdie, and it
>>> will become site-wide. Since we're using various clients, with various
>>> EOL methods, it would be a big help.
>>
>> Sorry, your svn admin is correct. But, what you can do is create a
>> pre-commit hook on the server side which will reject any commits that do
>> not have eol-style property set. You can also show your devs how to set up
>> auto-props so when they add new files they automatically get the eol-style
>> property.
>>
>> I'm pretty sure the svn book explicitly states which config options are
>> server side and which are client side.

> No need to be sorry. Someone always has to be wrong. :)

> We've already told the devs how they can set it up client side but I
> was hoping SVN would support this globally. Anything that makes
> people do extra thinking comes back to my team as "there has to be a
> simpler way." I'll investigate the pre-submit hook. I was actually
> just looking at them for lint purposes anyway.

> I'm sure there's something in the book that I overlooked. Thanks for the info.

No, it's not "pre-submit", it's "pre-commit" hook. And as any hook, it's
running on server side, when data is already submitted to the server, but
before it really committed to the repository.

The simpler way is to create a prototype configuration file and distribute it
across your developers. You could use the very same Subversion for it, as book
explains in one of the examples.

Also, please don't top-post.

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 24.11.2009, <10:48>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2423704
Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-24 08:55:50 CET

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.