views:

111

answers:

1

I have a series of python scripts with execute permissions in Linux. They are stored in SVN.

If I then run svn up to update them, the overwritten files are back to 644 - ie no execute permissions for anyone.

Yes I could just script it to chmod +x * afterwards, but surely there's a way to store permissions in SVN or to maintain them when you update?

Any suggestions appreciated.

+4  A: 

You need to set the svn:executable property on the file.

svn propset svn:executable true  <filename>
Daniel Roseman
@Mark Can you update your reference to a more recent documentation reference. Subversion 1.1 is a bit old and the documentation has improved since then. E.g. to http://svnbook.red-bean.com/en/1.5/svn.advanced.props.html
Bert Huijben
Ah, well spotted, thanks, I've deleted. Thanks again to Daniel, and here's a link to the propset:http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.propset.html - yours was to advanced propset.
Mark Mayo