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

Re: why does SVN get confused about my EOL character?

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-04 00:25:40 CEST

On May 3, 2007, at 17:10, Richard wrote:

>> That is in the Subversion config file. You configure it to add
>> properties to files automatically based on their extension.
>> http://svnbook.red-bean.com/en/1.2/
>> svn.advanced.props.html#svn.advanced.props.auto
> OK, I see things telling me that I can have an autoprops section and
> that I can set a mapping between filename extensions and properties,
> but no example of what the syntax of the config file is like and no
> examples of setting properties for a specific extension. I've looked
> around in this book several times thinking I just missed it, but it
> just doesn't appear to be there.
> Can someone post an example of setting svn:eol-style to 'native' for
> *.cpp, please?

The default Subversion config file installed by the Subversion client
should provide sufficient examples. But here's what you need:

In the section [miscellany], make sure it includes "enable-auto-props
= yes"

Then, in the section [auto-props], add these lines:

*.cpp = svn:eol-style=native

As the comments in the config file say:

### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?'). All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 4 00:26:47 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.