I use branches for major versions (1.1, 1.2, 1.3, etc) and then tags for a specific build. I've worked places where tags are either ordered or date/time and I haven't really developed a strong preference one way or another. A simple way would just be to apply "build00025" as a tag, then "build00026", etc. You can automate that with an ant script to find the most recent build number and increment it, then put that into a version file that get shipped off with the build so when you look at the server you can say, "oh, this is version 1.2 build00026" and you know it is in the 1.2 branch and which build it was and look at the tags in svn (or which ever system you use). The fundamental philosophy is largely the same regardless of source control system. I'm currently using it with CVS and plan to keep much the same organization when we move to Mercurial soon. If you are using SVN, the repository itself has a version number but I think that svn:externals can make it so that multiple repositories can be combined together and such. I haven't used externals, so I can't really say, but I wouldn't rely upon the built-in repository revision number, I'd suggest developing a tagging methodology of your own and sticking to it. Either incremental (build00026) or time-based (build20100611155144)
Basic structure in review: Branch for feature releases (that you just put out), tags for builds within a release. Hope that helps, Judah On Fri, Jun 11, 2010 at 3:40 PM, Rick Faircloth <[email protected]> wrote: > > I've been trying to get more into the use of tags, etc, in SVN > instead of just using it for code backup. > > I thought that tags were use predominantly for releases, but > you use a branch for a new release? What do you use tags for, > or do you use them? > > Rick > > -----Original Message----- > From: Judah McAuley [mailto:[email protected]] > Sent: Friday, June 11, 2010 6:08 PM > To: cf-talk > Subject: Re: Branching Strategies > > > I like to do a branch upon release and do development of the next > version in the trunk. With this pattern, each release has its own > branch so if you need to deal with an escalation, it is easy to switch > over to whatever version that server is on and fix it there, merge to > the trunk if necessary, then do a build from that branch. I find this > particularly useful as we are usually running a dev server, a beta > server and a full production server. We might have one small set of > customers trying out 1.5 for a month while the main set of customers > is on 1.4 and I'm currently developing 1.6 If there is an issue on > the main server, I can switch over to 1.4 in order to recreate, fix > and deploy. If there is an issue in 1.5, same thing. I've found that, > even with hosted software, it will often be the case that you'll have > multiple versions in production at the same time. If that will be the > case, I'd suggest a branch for each version so you can be sure of the > state of that code base. > > Cheers, > Judah > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:334493 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

