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

Re: svn:mime-type and svn:eol-style

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-01-14 15:20:38 CET

On Jan 14, 2005, at 7:55 AM, Dale Worley wrote:

> Due to various problems caused by not setting svn:eol-style and
> svn:mime-type correctly on files, our project has decided to
> systematically
> set these properties for all source-controlled files. In order to
> enforce
> good usage, it seems to me that it would be useful to occasionally run
> a
> script over a WC to verify that files have these properties in
> agreement
> with their extensions.
>
> I was wondering if anyone had already written a good, flexible script
> to do
> this task.
>

The usual thing to do is enforce this at commit time. Write a
pre-commit script that checks all newly added files in the commit
transaction. If somebody forgot to add the props to new files, fail
the commit.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 14 15:27:02 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.