I'm using Subversion for one of my PHP projects. I have two questions/issues:
As already mentioned, SVN will not store permissions.
The reason is trivial:
The user who did the checkout will be owner of all files inside his working copy, so it does not make sense to give permissions as he already has read/write permissions on all files inside his working copy (depending on his umask).
For executable flag set svn-property svn:executable.
.htaccess file
You should add the .htaccess to the parent directories svn:ignore property.
However, SVN will never change or overwrite your changes without asking you first. So if some of your buddys will store the .accessfile into repository, SVN will stop update and will mention that your own .htaccess file must be removed to continue.
For #2 you can simply add .htaccess to svn:ignore property. Here's a good take on what that does and how that work http://blog.bogojoker.com/2008/07/command-line-svnignore-a-file/ Permission-wise if you check out file it gets read/write permissions unless it's executable which should have svn:executable permissions and will be checked out as such. The file can also be explicitly marked with svn:needs-lock which then makes it read-only when you checkout
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With