Setting Up a Local CVS Repository

See Also

If you are a sole developer of a project and would like to set up version control for your files, you can set up a working directory and a CVS repository on your local machine. Then you can connect to the version control system through the IDE.

note To set up a local CVS repository, you must have a CVS command-line executable installed on your system. See CVS Support for more information.

To set up a local CVS repository:

  1. Outside of the IDE, create a directory or folder for the CVS repository on your system. The CVS repository should be a directory or folder that is relatively safe from accidental deletions.
  2. Outside of the IDE, create a directory or folder for your CVS working directory on your system. Skip this step if you already have a directory with sources that you want to put under CVS control.
  3. Choose Versioning and choose Mount Version Control and choose CVS from the main window to open the New CVS wizard.
  4. In the Working Directory pane, click the Browse button to navigate to and select your working directory.
  5. In the Connection Method pane:
    1. Select the Local radio button.
    2. Click the Browse button next to the Repository field. Navigate to and select the repository directory you created in Step 1. Click Open to leave the file chooser and click Next.
  6. In the CVS Client Selection pane:
    1. Click the Use CVS Command-Line Client Support radio button.
    2. To specify the path to the CVS executable, click Browse and navigate to where the executable is installed on your system. Click Open to exit the file chooser. Make sure that your system's PATH environment variable already points to the CVS executable.
    3. If you are using a Windows 95, Windows 98, or Windows ME system, specify a command shell in the UNIX Shell text field. See VCS Support on Windows 95, Windows 98, and Windows ME for more information.
    4. Click Next.
  7. In the Initial Checkout pane, click Finish. Do not select the checkbox to check out a copy of the repository files to your working directory.

    A new filesystem is mounted in the Explorer.

  8. Right-click the root node of the new filesystem and choose CVS and choose Init to initialize the repository.
  9. Right-click the root node of the new filesystem and choose CVS and choose Checkout to prepare your working directory for connection with the repository. Click OK to close the CVS Checkout dialog box without filling in any of the fields.
  10. Right-click the root node of the new filesystem and choose CVS and choose Add to add your local files to the repository. In the Add dialog box, click the Add All Local Files in Folder Contents radio button and select the Add the Folder Contents Recursively checkbox.

    The files are marked to be added to the repository, and the CVS status on their nodes changes to Locally Added.

  11. Select the root node of the filesystem and choose CVS and choose Commit. After the Commit command finishes, all of the file nodes display the Up-to-date CVS status.

    The files are now under CVS version control. You can now use CVS commands in the IDE to add and remove files, commit changes to files, view differences and file histories, and so on.

See Also
Calling CVS Commands
CVS Commands
Reconfiguring a CVS Filesystem

Legal Notices