I’m having a slight issue wrapping my head around on how to set up Subversion when working with php files. I store all my files at c:\www[nameOfProject]\htdocs and I setup virtual hosts for each project. (c:\www\project1\htdocs\index.php maps to http://localhost/project1/index.php).
How do you guys handle using SVN? Lets say I have c:\svnrepos\ which is where I store each repo for each project. Now ideally I would want to check out from the repo at c:\svnrepos\project1 to c:\www\project1 correct? But the docs say to do it to an empty directory, but how can I preview my code then without moving it somewhere else first?
Thanks for the help guys!
One way of doing this effectively is to do your development by checking out the trunk into, say, c:\www\preview\project1 and testing it with an appropriate virtual host or different url there.
As you get it working, you will be checking in various versions of the trunk. When it’s ripe to move over to your ‘real’ host/url, then you
After that you can do urgent bug fixes under branches/rel.1, and merge them back into ongoing work under trunk. When another release is ready, you
This way, you can keep your development from interfering with the real service, and also switch back to an earlier release if you have problems.
For a more complicated, but urgent, bugfix, you can