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

Re: Should EXPORT honor AUTO-PROPS

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-01-31 06:54:37 CET

On Jan 28, 2005, at 6:59 PM, Larry Settle wrote:

> Using svn, version 1.1.2 (r12471)
>
> Is there a good reason why:
> SVN EXPORT --native-eol LF URL PATH
> doesn't convert from CRLF to LF even though I have
> enable-auto-props=yes
> [auto-props]
> *.css = svn:mime-type=text/css;svn:eol-style=native
> in ~/.subversion/config?

I think you're confused about what auto-props does: its only purpose
is to run quietly run 'svn propset' when the 'svn add' or 'svn import'
commands are run. That's it, nothing more. It has no effect on
eol-translation at any time. The confusion here is that many people
use the feature to automatically set the 'svn:eol-style' property when
files are added. But auto-props in and of itself is wholly unrelated
to eol-translation. It might be setting random properties, like "color
= green"!

>
> It doesn't accept --auto-props, either.
>
> The file itself does not have the svn:eol-style=native
> property. Its absence seems to be all that controls
> --native-eol.

If a file has the svn:eol-style property attached, then eols will be
translated. It's that simple. Autoprops is not related.

The '--native-eol' switch forcibly converts any file with the
svn:eol-style property to a specific line ending.

svn-load-dirs.pl is sensitive to whether your config file has
auto-props "on" or "off" only because it occasionally adds new files to
the repository. So switching auto-props on and off will affect whether
svn-load-dirs.pl is importing new files with svn:eol-style.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 31 06:58:00 2005

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.