Today I committed a .py file to my Subversion repository, but forgot to set “chmod +x” on the file first. When other people check out the branch, the file isn’t executable.

My first thought was to just do a “chmod +x” on the file and re-commit it. No dice. This didn’t pass the executable state on to the repository.

To set “chmod +x” on a file that is already under version control, you need to adjust the svn:executable property on the file:

$ svn propset svn:executable ON [filename]

Thanks to http://svnbook.red-bean.com/en/1.0/re23.html for the solution :)