Old Programmer looking to use subversion assembla
Please help… Old Programmer looking to use subversion assembla at my firm. I am doing alot of Java in Eclipse and my issues is the following. I am going to make it very easy.
1) I build a web site in Eclipse with JSP. I check it in and commit. it is live
2) I start w开发者_如何学Goorking on version two of the site but someone finds a bug in one of the prod JSPs. how do I checkout that version of the jsp update it and then commit it to the project. please tell me the right steps
Here's the workflow that most organizations use:
- When you make a production release, you tag it. In SVN, this is done with
svn cp
, copyingtrunk
into a named directory undertags
. - If you need to make bugfixes to a production release, you use
svn cp
to copy the tagged revision into a branch underbranches
. You then check out this named revision, make your changes, and check in. - If you're going to push the changes out to production, you can tag them from the branch, again using
svn cp
. Tags are cheap in Subversion. - If the fixes you made in the branch need to go back into
trunk
, you can merge them.
This is covered in the docs (this is a link to the chapter on branching and merging, but I recommend you read the introductory material if you're not familiar with SVN).
http://svnbook.red-bean.com/en/1.5/index.html
Read chapters 2 and 3 and that will be enough to hit the ground running. The command you are likely looking for is svn update -rNNN
however, without some background on SVN odds are excellent that you'll misuse it as SVN is very like (yet in some ways different) than the old school CVS, RCS, SCCS like systems.
You might want to skim chapter 1 too, as the revisioning model SVN uses is a little different than tight locking models (if you've been using one of those).
精彩评论