How to Use CVS in Eclipse
CVS (Concurrent Versions System) is a powerful tool used by teams of software developers to work simultaneously on different parts of the same project while tracking changes and ensuring that the project as a whole remains functional. The Eclipse Integrated Development Environment does not include direct support for CVS but it does have an official CVS client plug-in that can be used.
Instructions
-
-
1
Click "Help" and "Install new software."
-
2
Select "All available sites." It may take a few moments for the latest plug-in information to load from the Internet.
-
-
3
Under "Collaboration," select "Eclipse CVS Client." Click "Next" and "Finish." You may be asked to accept the terms of a licensing agreement. Review it and select "I agree." When the installation is finished, click "Restart Now."
-
4
Right-click your current project and select "Team" and "Share Project."
-
5
Enter the information about your CVS server in the dialog. At the minimum, you will need to provide the host name, repository path, user name, and password for your CVS server. Click "Next" and Eclipse will attempt to upload the project to your CVS server.
-
6
Right-click your project and select "Team" and "Update." This will download any changes made by another user to the server. You should update your local copy of the code anytime you begin work.
-
7
Make some changes to your project.
-
8
Right-click your project and select "Team" and "Commit." This will upload your changes to the server. You will be required to make a comment describing your changes. Commit each change you make so that all other developers on your team can access those changes. If someone else has committed a file after you updated but before your attempt to commit, you will be prompted to review the other user's changes and your own changes to perform a merge of the two changes.
-
1
Tips & Warnings
The CVS client included in Eclipse is designed to work with Eclipse projects only. Eclipse users may have difficulty sharing their code with non-Eclipse users through the Eclipse CVS client.