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

Re: Default eol styles

From: Casper Hornstrup <chorns_at_users.sourceforge.net>
Date: 2004-01-11 17:03:37 CET

> -----Oprindelig meddelelse-----
> Fra: Erik Huelsmann [mailto:e.huelsmann@gmx.net]
> Sendt: 11. januar 2004 16:13
> Til: Casper Hornstrup
> Cc: users@subversion.tigris.org
> Emne: Re: Default eol styles
>
>
> > How can I set a default svn:eol-style for new files and still have
> > rules for other files?
>
> I don't understand this question. Auto-props are used to set
> properties on files. Which means that if you change the
> auto-props settings only newly added files will be affected.
> All files which are already added have their properties set
> and thus continue to use whatever rules were set when they
> were added... If you want to change those rules, you can
> change the properties of those files in the repository.
>
> bye,
>
> Erik.

Say, I svn import a package at version 1.0 and want all files to have
svn:eol-style=native, except some files matching some patterns (say
files named configure for this example) which should have
svn:eol-style=LF.
Now, I can use auto-props to set svn:eol-style=native for all imported
files or I can set svn:eol-style=native for all files recursively after
the import. Now I have to manually set svn:eol-style=LF on all files
named
configure or create a script that will do it.

Then, I upgrade the package to version 1.1. The existing files will
retain
their svn:eol-style properties, but for new files, I need to manually
set
the svn:eol-style properties, both for files named configure
(svn:eol-style=LF), and all other files (svn:eol-style=native), since I
cannot just set svn:eol-style=native on all files recursively this time
(I would loose my existing svn:eol-style property values).

Casper

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 11 17:07:44 2004

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.