Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modifying subversion file permissions

I saw this question but it does not help me. I checked in a file without the executable permission and now, every time I branch or checkout, the file is not executable.

Some other files are indeed saved as executable. I'm guessing that it's because they had the executable bit during first check in--at least that's what my testing leads me to believe.

Does anyone know of a better way to modify (or even at least view) the permissions that subversion has for a file or folder?

like image 292
Belmin Fernandez Avatar asked Jan 21 '11 01:01

Belmin Fernandez


People also ask

How do I change permissions in svn?

If you need to manage access via svn:// protocol (embedded authorization), all you need to do is to change files in conf folder of your newly created repository: Set up passwd ( repos/conf/passwd ) in order to define a list of users and passwords.

Does svn store file permissions?

Subversion does not version permissions. There exist 2 wrapper scripts which you can use instead of “svn” for commit, checkout, update, etc., and store permissions in properties. They are: asvn and svn+perms. Last but not least there is a patch which adds the functionality into the svn core.


1 Answers

Use svn propset as follows:

svn propset svn:executable ON executable_file 

Then perform svn commit.

like image 157
CoolBeans Avatar answered Sep 18 '22 09:09

CoolBeans