Here's the steps I used. I'm not saying it's the best way to implement SVN, but 
it sure does work! Thanks to Bobby for his help! 

How to Use Subversion for Version Control, Using Tortoise SVN 
 

My System: Windows Vista, CFMX7 using the built-in CF web server.

Download Subversion here: http://subversion.tigris.org/
Download the Tortoise SVN GUI here: http://tortoisesvn.tigris.org/

Install both applications.  


* Before proceeding, Subversion and Tortoise SVN should be fully installed
and functional on your machine. 

* These instructions work when you have an existing website project. 
If you're creating a *new* website project, go ahead and copy its 
directory structure to its prospective repository folder. 


Steps
-----

1. Copy the entire site root folder and contents somewhere else on your hard 
drive. 
This should look like: CFusionMX7/wwwroot/yourwebsite, where "yourwebsite" is 
the site root.

2. Go to your original site root folder and delete all its contents

3. Create an empty directory somewhere on your hard drive. This directory
will house your repository. 

* This step may be better understood by thinking of it as creating a repository
for each site project. 

4. Right click on the empty directory you created in step 3. Choose "Create 
repository". Tortoise SVN will now create the site repository in this directory.

5. In windows explorer, browse to the folder where you copied the existing 
website project. (This should contain all contents of your original project). 
Right click > Tortoise SVN > Import. 
* You instinctively think you need to export, but you don't. You're actually 
IMPORTing the site into SVN. 

Then choose the location of the repository you created in step 3. Click OK. 

6. Browse to your original website project folder. This should be empty. 
Right click > SVN Checkout. 

Subversion will automatically create a working copy back in your original site 
root folder. You can now edit and save documents just like you've done before. 
Except now the changes are logged. 

*THE MOST IMPORTANT STEP

7. COMMIT! Now, whenever you make changes to your website project, you'll 
notice a little red icon on the folder when viewing it in Windows Explorer. 
This says hey, changes have been made to your website, and they don't match 
with what's in your repository. 

Right click > SVN commit

A fancy little window pops up showing you the changes that were made. Check off 
the boxes of items you'd like to commit. You can even enter some messages in 
the window above. Also, right click inside that top window and choose "paste 
filename list". When complete, SVN has saved the current version of your 
website. 

Remember to commit EVERY time you make changes to your website. If you don't, 
using SVN is about useless. 


Notes
-----

Step 1 isn't necessary. I chose to copy my site root folder to help avoid 
screwing up. You can directly import your website contents to its respective 
repository, from its original site root folder. Then delete all the contents in 
your original site root folder. Once this is complete, you're ready to checkout 
the repository 
contents back to your website root.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277648
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to