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.

note To set up a local CVS repository, you must have a CVS command-line executable installed on your system. The built-in CVS client does not support local repositories. 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 from the main window.
  4. Select a profile from the Version Control System Profile combo box.
  5. In the Working Directory field, select the working directory from step 2.
  6. Choose local from the CVS Server Type combo box.
  7. In the Repository Path field, browse to the repository directory you created in step 1.
  8. Click Finish to mount the VCS filesystem.
  9. Right-click the root node of the VCS filesystem and choose CVS and choose Init to initialize the repository.
  10. Right-click the root node of the VCS 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.
  11. If your working directory does not already contain the files you want to add to the repository, copy the files into the working directory.
  12. Right-click the root node of the VCS 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.

  13. 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
Mounting a VCS Working Directory
Calling Version Control Commands
Getting Files From a CVS Repository

Legal Notices