Login | Register
My pages Projects Community openCollabNet

CVS and Source Code Browsing

Source code browsing

The source code browsing feature allows you to easily see source code files and recent changes in your browser. CVS allows you to get the latest versions of all files to your computer and check in changes that you make (if you have permission).To use source code browsing, select a project from the list of projects. Next, select the submenu option named "Source/CVS" for a page of links to source code and CVS browsing tools. Then, click on the link for source code browsing.

Source code browsing allows you to:

  • Drill down through directories to get to individual source code files,
  • List versions for each file with author name and change logcomments,
  • View any version of a source file,
  • Color-code the differences between any two versions of a file,
  • See files annotated with the author of each section.


CVS (the Concurrent Versions System) is a version control system that keeps track of all modifications to source code files. Two special features of CVS are that it uses merging rather than locking, and that it can be accessed from anywhere on the Internet.

CVS allows you to:

  • Check out source files and directories,
  • View differences between versions,
  • View change log comments,
  • Commit changes made in your local copy of the source files to the main source code repository,
  • Do many other tasks, see links below.

For instructions on using CVS for a specific project: click on the project name in the list at left, then choose the "Source/CVS" submenu option. You will see a page with specific examples, and the location of the repository (CVSROOT) for that project.

CVS Repository:

To access the CVS source code repository use the following CVSROOT:

You may use the login "guest" with password "guest" to gain read-only CVS access. If you have been given write access to the CVS repository, then replace "guest" with your own login (e.g., mylogin@cvs.tigris.org) and use your own Tigris user password.

See the "source/CVS" page for each project to learn how the source code is organized into modules. For example, to get the Service Platform project source code, you should checkout "argouml/src". That is one top-level module that contain the entire source code tree for the Service Platform. other modules contain the Service Platform documentation and web site.

CVS Command-line Examples:

  1. Set your CVSROOT environment variable to the value shown above
  2. Log into CVS with the command:
    cvs login
    and enter your Tigris user password when prompted.
  3. To get a copy of the latest source files:
    mkdir my_working_dir
    cd my_working_dir
    cvs checkout argouml/src
  4. To see the differences between your copy of a file and the latest version:
    cvs diff FILENAME
  5. To compare your local directory against shared repository:
    cvs -qn update
  6. To commit your changes to a
    (Your Tigris account must have write permission)
    cvs commit -m "Type your changes message here" FILENAME
  7. To commit your changes to all files in a directory and subdirectories:
    (Your Tigris account must have write permission)
    cd top_directory_to_commit
    cvs commit -m "Type your changes message here"
  8. To add a file to the shared respository:
    First create the file in the working directory of what you have checked out. Then type:
    cvs add FILENAME
    After you have made all additions, you will need to commit your changes.
  9. To remove a file from the shared repository:
    First delete the file from what you have checked out. Then type:
    cvs remove FILENAME After you have made all removals, you will need to commit your changes.
  10. To update your working directory with the latest changes from the shared repository (including any new directories):
    cd my_working_dir
    cvs update -d

Further CVS Documentation:

CVS Clients:

CVS Books: