Matthew wrote:
> Hi everyone,
> 
> Setup: Windows environment, IIS, CF7, Eclipse
> 
> I'm looking to apply version control to a website I'm working on and
> would appreciate any recommendations on how best to set everything up
> in regards to version control + CF coding.
> 

> Question: I've install Subversion etc and am at the point where I've
> got a repository setup on a shared server with a fresh copy of the
> website code "as of today" in the trunk and I've tagged it as version
> 1.0. I've then checked it out (should I checkout the tag or the trunk
> by the way?) and all works perfectly ready to start / edit code.
> However I'm looking for advice on when to branch / tag? T


You have done the hard part, getting the repository up and running and 
getting your code into it in the trunk and then tagging it as 1.0. You 
should check out the Trunk, Tags are for going to Production (BTW Tags 
and Branches are the same difference, it is just a convention that a Tag 
is "Production Ready" and a branch is for specific code modules or 
testing, etc)

 From that point on I think you missed one of the beauties of SVN, you 
only ever checkout once into a workstation to create your Working Copy 
and from that point onwards you just Switch between the trunk/branches 
as you need, you don't have to checkout again.

You start with the trunk checked out into your machine. If you need to 
work on a subset of the code, like your SQL coding section, then create 
a branch for that part. (Trap for the unwary if you are using 
TortoiseSVN - do not create the branch "folder" in the Repo Browser, 
just name it in the Create Branch dialog and Tortoise will create it for 
you) Once you have created the branch you can just switch to it and 
Tortoise will do all of the folder/file swapping needed to make your 
working copy the Branch not the Trunk. Work on the Branch and test, 
etc., in CFEclipse in the same project space, the code you will be 
looking at *will* be the branches code. If you need to do another 
discrete task the Switch back to the Trunk, wait for all the shuffling 
to finish, and then create a new branch and Switch to that. As coding in 
a branch is completed you can Merge it back into the Truck.

When something is ready for Production then Tag it and do an Export from 
the Tag and deploy to your production boxes by your preferred method (or 
you can put a SVN client like Tortoise on your Production boxes and 
Checkout rather than Export (note this method can cause major upheavals 
when discussed on Lists like this one, there are very strong opinions 
either way))



-- 

Yours,

Kym Kovan
mbcomms.net.au


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to