Before you can begin work on a development project using the CVS in the IDE,
a CVS repository needs to be set up for that project. If command-line CVS is
installed on your system, you can create a local CVS repository with the IDE's
CVS command-line support.
- Outside of the IDE, create a directory or folder for the
CVS repository on your system.
The CVS repository should be in a place accessible to all of the
project's
developers but relatively safe from accidental deletions.
- Outside of the IDE, create a directory or folder for your
CVS working directory on your system. If you already have a directory with
sources that you
want to put under CVS control, you can skip this step.
- Choose Versioning
Mount Version Control
CVS from the main window to open the New CVS wizard.
- Click the Browse button in the Working Directory panel of the wizard. Navigate to
and select the directory you want to use as your working directory. Click
Open to exit the file chooser and click Next.
- In the CVS Connection Method panel, select the Local radio button.
- In the same panel, click the Browse button next to the Repository field.
Navigate to and select the repository directory you created in Step 1.
Click Open to exit the file chooser and click Next.
- In the CVS Client panel, click the Command-Line Client Support radio
button.
Specify the path to the CVS executable by clicking Browse, navigating
to the executable, and clicking Open to exit the file chooser.
If your system's PATH environment variable already points toward CVS, you
can continue without modifying this field.
If you are running on Windows 95, Windows 98, or Windows ME, you also
need
to specify a command shell in the UNIX Shell field.
When you have entered all of the necessary information, click Next.
- Leave the checkbox in the Initial Checkout panel unselected and click
Finish.
A new filesystem is mounted in the Explorer.
- Right-click the root node of the new filesystem and choose CVS
Init to initialize the repository.
- Right-click the root node of the new filesystem and choose CVS
Checkout to prepare your working directory for
connection
with the repository. Click OK to exit the CVS Checkout dialog box without
filling in any of the fields.
- Right-click the root node of the new filesystem and choose CVS
Add to add the files to the repository. In the Add dialog, 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 status on their
nodes changes to Locally Added
.
- Select the root node of the filesystem and choose CVS
Commit to add the files to the repository. After the Commit command finishes,
all of the file nodes should display the Up-to-date
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.