CVS Branching with Eclipse

F

fsa3

Hi all,

I'm building a web application with Eclipse and want to utilize the CVS
branching to support coding new larger scale functionality while also
being able to make and deploy minor changes. My experience with CVS is
limited but from my reading it seems like branching and merging is what
I want.

What I've done so far is Tagged the code and then branched it (new
branch is V1_1). I've been playing around and can't seem to figure out
what the proper way to make changes is and then merge them.

If someone could give some tips on how I should:

a) Make a change to the "base" code and deploy it.
b) Code changes for new functionality and then merge them with minor
changes?

Thanks,
Frank
 
D

David Wahler

I'm building a web application with Eclipse and want to utilize the CVS
branching to support coding new larger scale functionality while also
being able to make and deploy minor changes. My experience with CVS is
limited but from my reading it seems like branching and merging is what
I want.

What I've done so far is Tagged the code and then branched it (new
branch is V1_1). I've been playing around and can't seem to figure out
what the proper way to make changes is and then merge them.

If someone could give some tips on how I should:

a) Make a change to the "base" code and deploy it.
b) Code changes for new functionality and then merge them with minor
changes?

First, you need to make sure you're working on the correct branch
before you make changes. You can switch between branches by
right-clicking on the project in the left-hand panel and selecting
Replace With > Another Branch or Version. This will show any branches
you've created, plus the main HEAD branch. The project's icon should
show the name of the current branch, if one other than HEAD has been
selected.

Once you have the branch checked out, you can synchronize with it as
usual to check your modifications in and out. You can also switch
between branches as often as you'd like, but make sure all your changes
are committed first or they'll be overwritten.

When you're ready to merge changes from one branch to another, first
switch to the target branch -- the one you're merging into. Then
right-click on the project, select Team > Merge, and input the name of
the branch and its starting tag. You'll need to resolve any conflicts
by using the Synchronize view.

The Eclipse documentation has a lot of useful information on working
with CVS, by the way; it's in the Workbench User Guide. Hope this
helps!

-- David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top