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

Re: Marking certain files read-only on checkout

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-01-23 23:26:04 CET

On Fri, 2004-01-23 at 15:31, bins wrote:
> Is it possible to configure svn to mark certain file types as read-only on
> checkout ?

The svn client doesn't muck with working-copy permissions, other than
possibly setting something executable. The problem is that there's no
portable way to read/set permissions. So the answer is, "no."

> This combined wih the ability to lock files for exclusive access would make
> svn
> work well for us.

svn 1.0 has no locking ability, future versions probably will.

If your main goal is to prevent people from committing changes to
certain types of files, you can write a pre-commit hook script (see
chapter 7) to enforce that. If the problem is that you need a
communications system to coordinate parallel editing of non-mergeable
binary files, you'll have to find some other out-of-band system. SVN
won't do it for you (yet.)

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