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

RE: question about unix file permissions

From: Tim Alsop <Tim.Alsop_at_CyberSafe.Ltd.UK>
Date: 2004-07-03 09:25:45 CEST

Eric,

Thank you. This is good news.

So, if the properties of a file are changed, surely this should be
recognised as a change to the file and handled in the same was a
modification to its content during the next commit ? Instead, it appears
this is not the case and properties are only transferred into repository
after initial add.

I will try and use svn propset command to change my files, but I would
prefer subversion to be more consistent so that future permission
changes are recognised in the same was as content changes.

Thanks, Tim.

-----Original Message-----
From: Eric Wilhelm [mailto:ewilhelm@sbcglobal.net]
Sent: 03 July 2004 00:44
To: users@subversion.tigris.org
Subject: Re: question about unix file permissions

# The following was supposedly scribed by
# Tim Alsop
# on Friday 02 July 2004 05:42 pm:

>I wondered if there were any plans to support unix file permissions and
>ownership for files in the repository ? Currently when I check out my
>build environment from subversion I have to modify all of the shell
>scripts using 'chmod u+x' so that they are executable. If it was
>possible to store permissions of unix files in the repository this
could
>be avoided. Any ideas ?

I'm not sure about permissions in general, but you can have them
executable:

svn propset svn:executable 1 <svn-controlled file>

I hadn't thought about this before your post. I've recently taken to
using a
'new file' script which chmod's the file as 755 before doing 'svn add'.
The
files added in this way stay executable when checked out elsewhere,
while
those that have been chmod'd after being added don't.

--Eric

-- 
"It ain't those parts of the Bible that I can't understand that 
bother me, it's the parts that I do understand."
                                        --Mark Twain
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jul 3 09:27:38 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.