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.
 |
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:
- 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
CVS
from the main window to open the New CVS wizard.
- In the Working Directory pane, click the Browse button to navigate to
and select your working directory.
- In the Connection Method pane:
- Select the Local radio button.
- 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.
- In the CVS Client Selection pane:
- Click the Use CVS Command-Line Client Support
radio button.
- 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.
- 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.
- Click Next.
- 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.
- 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 close 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 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