This page describes how to update Etomica sources in Eclipse from CVS.
- Right-click on an Etomica project you want to update
- Select "Team", then "Synchronize"
- Files that you changed locally and also changed in CVS will be marked red in the synchronize view. You'll need to fix these first. The status bar lists the number of such files.
- If you double-click on such a file, you can see the local (on the left) and CVS versions (on the right) of the file and decide how to proceed.
- Lines that have been updated in CVS are marked blue in the right margin
- Lines that you have changed are marked grey in the right margin
- Lines that have been updated in CVS and you have also changed are marked red in the right margin
- If you're willing to throw away your changes, right click on the file and select "Override and Update"
- Or you can merge in changes from CVS
- You can edit the file on the left and/or copy paste from the right.
- There are several buttons in the top-right that are helpful
- "Copy All Non-Conflicting Changes from Right to Left"
- Select a group of lines and then "Copy Current Change from Right to Left"
- When you are done merging, mark the file as merged (right click on the file, mark as merged)
- Once all the red-marked files have been handled, you can update the project
- Right-click on the project (in the Synchronize view) and select "Update"
Some changes in a project may depend on changes in another project, so it's a good idea to update all of the projects. Files that you changed and new files you created might also need updating.
If update the project before resolving the red-marked files, it is likely to corrupt Eclipse's CVS data and require manual editing of CVS files before you can update again. So, always update the conflicts first.