I have tried setting up a logical way of using subversion (or any other VCS really but i've played more with svn).
Let me start with explaining my problem, We are a few coworkers which needs to be changing our customers websites on a daily basis, however the customers also can change some files via their "admin panel" on the website. As well as some files are generated on the servers, logfile, export/import data, sitemaps etc.
We are now working over FTP, and to maintain some kind of file history we make .bak.revision#.php files but it is almost unmanagable. On top of that i am using Netbeans as my IDE, which requires local copies of the files.
To start a project i need to sync changed files with my customer (or worst case download full project) (which can take forever).
I really enjoy working with Netbeans, but now i sometimes end up using notepad++ instead.
I set up a pretty nice way of working with SVN with a post-commit hook that exports the project into a http folder that way i can do an update on my local copy, make changes and then commit -done-
But i don't want to overwrite files that might have been changed on the server, for example the customers CSS-file which they can make changes to themselves.
So i thought i cannot be the only one to have this problem, how to work with SVN if not everybody in the team does? (in my case the customers)
i may be able to use svn:ignore on those files i guess?
(this is test environment) My post commit hook is very simple; svn export file:///svn/repo/LIVE /var/www/html/ --force
EDIT Plausible solution i will look into, if i create a pre-commit, or even better ?pre-update? hook to import overwrite files already in the repo, that would solve my problem, would it not?
NVM The Import runs commit. commit and pre commit would not work well, since it would create an endless loop
Kindest Regards Iesus