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

Re: How do I change file permissions?

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-10-12 00:53:21 CEST

On Oct 11, 2007, at 07:48, brian@enchanter.net wrote:

> Jeremy Pereira wrote:
>
>> On Unix systems, the eventual permissions of the reverted file is
>> determined by your umask setting. If you set umask to 007, the
>> reverted file will have rw-rw---- permissions. Otherwise you are
>> going to need to chmod it after the revert.
>
> That wasn't what was happening. 'svn revert' reverted files back to
> whatever permissions they had when they were first checked in, even
> if I
> did an 'svn remove' and then 'svn add'ded them back in.

But Subversion repositories do not have the capability to store file
permissions (with the exception of the executable bit, via the
presence or absence of the svn:executable property).

> The solution we came up with was to chmod all the files to the
> permissions
> we wanted, then check them all in to a new repository.

If files in a working copy have certain permissions, and you check
them into a Subversion repository, then the files in your working
copy will still have those certain permissions. If you don't want
that, you can simply check out a new working copy from the repository
and discard the old one, and all the files' permissions should now be
"normal".

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 12 01:06:46 2007

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.