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

Re: Setting svn:eol-style=native

From: Martin Scharrer <mailinglists_at_madmarty.de>
Date: 2006-12-12 00:50:43 CET

On Monday 11 December 2006 21:45, Chris Stankevitz wrote:
> > Q2: Do I need to train my users to set this style for each of the text
> > files they add and hope they do it right?
> Yes, SVN requires your users to be aware of svn:eol-style=native
>
> > Q3: Can I tell SVN "all files in this repo, if not otherwise marked,
> > have svn:eol-style=native"?
>
> I do not know.

To Q2 and maybe Q3:
You can use auto-props to set properties automatically when added.
To do this add (or enable) this following lines in your ~/.subversion/config
file (see svn-book for Windows location):

---------------------------------------------------
[miscellany]
enable-auto-props = yes

[auto-props]
*.c = svn:eol-style=native;svn:keywords=Id # Example only
*.cpp = svn:eol-style=native # Example only
...
---------------------------------------------------

You have to add all your normal filetypes like shown above.
Then you have to give this config file to all users, because it's a per user
config file.

Also some hook-script could do the job, but I don't know much about them.
Check the docs.

Other note: You should be carefully checking that the file you add has to
correct local line ending (also Linux-EOL under Linux and Windows-EOL under
Windows), there could be problems otherwise. But normally this is already the
case.

best,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 12 00:56:24 2006

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.