How can I add my project to CVS from within the CodeWarrior IDE?

To add a project to the CVS:

  1. Right-click the project in the CodeWarrior Projects view and select Team > ShareProject.

    If you have already configured a CVS repository with the CodeWarrior IDE, the Share Projectwith CVS Repository page of the Share Project wizard appears. Otherwise, the Enter Repository Location Information page appears.

  2. Specify the repository to which you want to add the project and click Next.

    The Enter Module Name page appears.

    Figure 1. Enter Module Name Page

    Enter Module Name Page

  3. Specify name of the module in the CVS repository and click Next.

    The Share Project Resources page appears.

    Figure 2. Share Project Resources Page

    Share Project Resources Page

  4. Select the files that you want to add to the CVS.

    If the project includes generated file, then you may not want to add them to the CVS module. You can add such files to the .cvsignore list. The .cvsignore is a special text file which specifies all the files that should be ignored/filtered out. The .cvsignore file can also use wildcards, such as *.tmp for filtering.

  5. Check the Launch the Commit wizard checkbox and click Finish.

    The Commit Files wizard starts displaying the list of unknown files.

    Figure 3. Commit Files Wizard

    Commit Files Wizard

  6. Specify whether these files are binary or ASCII Text. In this example, CVS does not identify three file extensions and assumes them as binary files. However, as *.mem, *.tcl, and *.cwGeneratedFileSetLog are text files, the file type is changed to ASCII Text.
    Figure 4. Specify How to Store Unknown Files

    Specify How to Store Unknown Files

  7. Click Next.

    The Commit page appears.

    Figure 5. Commit Page

    Commit Page

  8. Enter appropriate comment for the commit action and click Finish.

    The icons of the files and folders in the project change, which specify that the project is now under CVS control.

    Figure 6. Project Under CVS Control

    Project Under CVS Control

Now, if you have done changes to a source file, and you need to view the differences between your local copy and the repository copy, perform these steps.

  1. Right-click the modified file and select Team > Synchronize with Repository. The C Compare Viewer opens displaying comparison between the files (refer to the image listed below).
    Figure 7. C Compare Viewer

    C Compare Viewer

  2. Review the changes. If you are ready to commit the changes, right-click the file and select Team > Commit.
  3. Enter the appropriate comment and click Finish.

You can also perform the synchronization in the Synchronize view in the Team Synchronizing perspective (refer to the image listed below).

Figure 8. Synchronize View

Synchronize View

The Synchorize view displays what has been changed either locally or remotely. For example, in the Synchorize view (in the following figure), the file main.c is on revision 1.2 with some outgoing changes, that is some changes are done locally in the file, and there is a new file test.c which is not commited yet.

Figure 9. Synchronize View Displaying File Revisions

Synchronize View Displaying File Revisions