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

Re: eol-style native

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Wed, 24 Sep 2008 14:30:20 -0500

On Sep 24, 2008, at 09:24, Steve Whitson wrote:

> Is there a way I can turn off the automatic setting of the property
> svn:eol-style native?

It is off by default. To turn it on for, say, all .txt files, you add
this to your client's Subversion config file:

*.txt = svn:eol-style=native

So, if you want Subversion to not automatically add that property to
those files, simply remove that line from your config file again.

> I would prefer to turn this feature off per repository. I have
> some repositories that may benefit from this feature and others
> where it will just get in the way. If not per-repository, is it
> possible server wide? Doing this per-user (client) config sounds
> awful cumbersome and problematic in my environment.

Automatic properties are a client-side setting only.

You can write a pre-commit hook for your repository which prevents
commits which do not meet your requirements. For example, for one
repository, you can require that all .txt files have this property
set, and for another repository, you can require that it not be set,
if that's what you want. Committers are responsible for adding or not
adding the property, as needed.

If you look at "svn help commit" you'll see a "--config-dir"
argument. Users can set up a config directory per repository, and
whenever they commit to a particular repository, they can use the --
config-dir argument to specify the config dir for that repository.
That way they can set up different auto-props rules for different
repositories. I admit that's not as convenient as Subversion
automatically knowing what rules to use for what repository, but it
is the only thing Subversion offers at this point.

> While reviewing the per-client choice, I've looked at the client
> [auto-props] section in a config file, but I don't see how to turn
> of such a feature (eol-style =native), only how to add it.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-24 21:30:41 CEST

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.