On Fri, Jun 11, 2010 at 2:36 PM, <[email protected]> wrote: > One co-worker wants to create a branch of every release (we have about a > 3-month release cycle) and develop changes for the next release in that > branch while day-to-day hot fixes get committed directly to the trunk > for immediate deployment. > > I would rather always commit straight to the trunk and only branch for > really big projects which are likely to interfere or break other > development because I am afraid of the overhead of merging.
There are a lot of opinions about this and they're all right. Personally, I use branches for three things: * deployment * hot fixes for released versions * long-term development that won't go to production in the next release Let me elaborate: * deployment I actually like the process of having a branch for production and a branch for staging and managing merges across them. Generally I merge trunk to staging for QA. Bug fixes are applied to trunk and merged to staging. When QA signs off, staging is merged to production. This allows svn update to be your deployment script (over-simplification but that's the basics). * hot fixes for released versions Every time you make a release, tag it. If you find you need to implement a hot fix for a released version, branch from the tag and apply changes to that branch (and merge back to trunk). * long-term development If you are working on a variant project that is not part of your next production release, create a branch for it. Once you're ready for a release that includes this variant, merge it back to the trunk and kill the branch. -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334503 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

