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

Re: EOL Check Hook Script?

From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 12 Mar 2009 11:54:23 -0400

I have a pre-commit hook that among other things, allows you to force
the setting of various properties. For example, I force the setting of
svn:eol-style = LF in all *.sh and *.pl files. If you create a file,
and that property is not set, I reject the commit.

This "encourages" our developers to set auto-properties and keeps the
correct line endings on our files.

You can set svn:eol-style en mass, then use this hook to make sure all
new files have the svn:eol-style property set.

ou can download the hook script here:
<http://dl.getdropbox.com/u/433257/hooks.zip>

On Thu, Mar 12, 2009 at 3:31 AM, Bob Proulx <bob_at_proulx.com> wrote:
> Ryan Schmidt wrote:
>> I didn't understand your reason for not wanting to use the existing
>> eol enforcement technology that Subversion already has (setting
>> svn:eol-style).
>
> One reason is that then I would need to have these other folks working
> on the project to set up their auto-props.  That is about as much
> trouble for me to get them to do as it is for me to get them to set up
> their editors with eol conventions.  If I could do one successfully
> then I would be able to do the other instead.  I would just set up
> their editors to be newline only and be done with it.

--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1313438
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-12 16:56:09 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.