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.
 |
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:
- 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.
- 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.
- Choose Versioning
Mount
Version Control from the main window.
- Select a profile from the Version Control System Profile combo box.
- In the Working Directory field, select the working directory from step 2.
- Choose local from the CVS Server Type combo box.
- In the Repository Path field, browse to the repository directory you created
in step 1.
- Click Finish to mount the VCS filesystem.
- Right-click the root node of the VCS filesystem and choose CVS
Init to initialize the repository.
- Right-click the root node of the VCS filesystem and choose CVS
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.
- If your working directory does not already contain the files you want to
add to the repository, copy the files into the working directory.
- Right-click the root node of the VCS filesystem and choose CVS
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.
- Select the root node of the filesystem and choose CVS
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.
Legal Notices