6.2. Creating a CVS Repository

Problem

You need to create a CVS repository to store code to share with others.

Solution

In Linux and Unix, use the command cvs -d path init, where path gives the location of the directory you want to use as the repository. In Windows CVSNT, use the Repository tab’s Add button to add a new repository.

Discussion

After installing a CVS server, you need to create a repository in which to store shared code. In Linux and Unix, you can enter cvs -d path init at the command prompt, where path is the location of the repository.

Tip

When creating a repository, bear in mind that the permissions and ownership for path have to allow access to all members of the development team.

In Windows, CVSNT runs as a Windows service. You start it from the Start menu, selecting the Service control panel item from whatever program group you’ve added it to. This opens the CVSNT control panel shown in Figure 6-1. Click the Repositories tab in the CVSNT control panel, click the Add button, enter the path of the new repository directory, and click OK. In the figure, we’re using the directory c:/repository as the CVS repository.

Selecting a repository

Figure 6-1. Selecting a repository

You start the server by selecting the Service control panel item from the program group to which you’ve added CVSNT, opening the CVSNT control panel. Click the Start button in both the “CVS Service” and “CVS Lock Service” boxes, ...

Get Eclipse Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.