6.13. Creating CVS Branches
Problem
You want to develop a new version of your code, such as a beta version, by creating a new branch in your development tree.
Solution
Add a new branch to your project’s development tree by selecting Team→ Branch.
Discussion
CVS also enables you to create new branches in your code’s development tree. Such branches can act as alternate streams of development for your code; e.g., you might want to develop a new version of your code that uses prompts in another language.
To create a branch, right-click a project and select Team→
Branch, which opens the Create a new CVS Branch dialog shown in Figure 6-19. In this example, we’ll name
the new branch Spanish_Version, as shown in the
figure. At the same time, you can create a new version name for your
code that will act as a reference, giving Eclipse a reference point
for merging the branch into the main stream if you want to do that;
Eclipse will suggest the name Root_Spanish_Version
here.

Figure 6-19. Creating the Spanish_Version branch
Clicking OK here opens the new branch in Eclipse, as shown in Figure 6-20 (note the project name in the Package Explorer).

Figure 6-20. A new branch
You can check out the new branch from the CVS Repositories view, as shown in Figure 6-21.
Figure 6-21. The new branch in the CVS Repositories ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access