I am using Subversion for one of my PHP projects. I have two questions / questions:
For # 2, you can simply add .htaccess to svn: ignore the property. Here's a good approach to what it does and how it works http://blog.bogojoker.com/2008/07/command-line-svnignore-a-file/ In truth, if you check the file, it gets permission to read / write, unless it is executable, which must have svn: executable permissions and will be checked as such. The file can also be explicitly marked with svn: needs-lock, which then makes it read-only when you check
As already mentioned, SVN will not store permissions.
The reason is trivial:
The user who made the check will be the owner of all the files inside his working copy, so it makes no sense to give permissions, since he already has read / write permissions for all the files inside his working copy (depending on his umask).
For e x ecutable flag set svn-property svn: executable.
.htaccess
You must add .htaccess to the svn: ignore parent directories.
However, SVN will never change or overwrite your changes without first asking . Therefore, if some of your buddys store the .accessfile in the repository, SVN will stop the update and mention that your own .htaccess file must be deleted to continue.
1) ... permissions will not be transferred.
2) ... the update will leave him alone if it is not under version control.
However, double check these ideas. You are welcome.
An example of how to make an executable file:
svn propset svn:executable ON filename