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

Re: Hook script to set auto-props

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-11-23 02:22:56 CET

On Nov 22, 2004, at 5:45 PM, Jennifer Kesterson wrote:
>
> What is the easiest way to set auto-props in a hook script? We want
> to set the eol-style property to "native" during a commit, except for
> binary files.

A pre-commit hook script *may not* change the pending transaction. It
will mess up your working copy. It's been discussed on this list many,
many times. I'm surprised there's no FAQ for it yet.

Instead, have your users use 'auto-props', and (optionally) use a
pre-commit hook script to *reject* any commits that don't conform. See
this FAQ:

    http://subversion.tigris.org/project_faq.html#auto-props

> Unfortunately, the client-side config file isn't suitable for us
> because some of the users will log in from many different machines.
>

Then set auto-props in the 'global' config file of every machine, so
that every user of every machine is affected.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 23 02:26:55 2004

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