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

Re: Is it possible to set the file mask for an existing file?

From: Steinar Bang <sb_at_dod.no>
Date: Sun, 31 Jan 2010 19:12:30 +0100

>>>>> Tyler Roscoe <tyler_at_cryptio.net>:

> Subversion doesn't track file permissions in this way.

Yes, looking closer at the thread I found, it is a patch that was shot
down in February 2005

> The files in your woking copy will have permissions based on the umask
> setting of your shell.

Which is fine if what you want to do is check out software source code,
but for other uses (such as versioning and sharing your home directory),
it isn't very helpful.

Annoyingly this actually worked in CVS (just chmod go-rwx the RCS file
in the CVS repo). At least for my limited use case which is to limit
read access to files containing security information.

Are there hooks that can be run on the client side when updating, or
checking out from the repository?

One thing I could do is to write a wrapper script called svn, and put
that in the path...? It could first invoke svn, then, if this is an
update, look for the custom property, and chmod appropriately after the

It won't help me if I run a client that's linked with the svn .so/dll,
or implements the svn protocol in a different language.
Received on 2010-01-31 19:13:42 CET

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.