Creating a CVS project
Once you have CVS set up on your machine and you have set a repository and working directory, you can begin creating CVS projects.
To create a CVS project:
- In the Explorer window of the IDE, select the Filesystems tab, right-click on the
Filesystems
node, and choose New CVS from the contextual menu.- In the Customizer dialog box that appears, configure the module to communicate with CVS by following these steps:
- Choose the destination of the CVS repository in the CVS Connection Type panel. If it is located on your local drive, select
local
. Otherwise selectserver
orpserver
to access the repository on a server.- Move to the CVS Settings panel. If your CVS Connection Type is server or pserver, enter your server name in the Server field.
- Next to the Repository field, click Browse to open up a file chooser. In the file chooser, navigate to the CVS repository you have created for your project. This is where the versions of your files used by the version control system will be stored.
- If you have any sub-directories in your CVS repository, you can treat them as CVS modules. Enter the name of the module you want to work with. If you want to work with the whole directory, then leave the field blank.
- Click Browse, navigate to directory you have set up as your working directory, and then press OK.
Note: If you are working on Windows 95/98, you have to use a Unix shell as an interpreter of CVS commands (since the command shell used on Windows NT/2000 does not work properly on Windows 95/98). To use a Unix shell you have to install one first and then choose Use Unix Command Shell and enter the path to the interpreter. The recommended Unix shell is
sh.exe
orbash.exe
from Cygwin (http://sourceware.cygnus.com/cygwin/).- If the CVS repository has not yet been initialized, right-click on the CVS file system under the Filesystems tab in the Explorer and select CVS | Init from the contextual menu.
- Right-click again on the CVS file system's node and choose CVS | Check Out from the contextual menu.
You can now create packages and files in the IDE and add them to your CVS project.
To add a package and its files to your CVS project:
- Right-click on the root node of your CVS working directory and choose New Package from the contextual menu to create a new package. Name the package cvsproject.
- Right-click on the newly-created
cvsproject
node and choose New from Template | Classes | Class from the hierarchy of contextual menus. Name the class and click Finish. The class will appear with its file status ([Local]
) in brackets after its name on the node.- Repeat the previous step to create other classes.
- Add the package and classes to the CVS repository by right-clicking on the cvsproject package node and choosing CVS | Import from the contextual menu.
- CVS works best when imported files have been checked out from the repository, so you should then do the following
- Right-click on the cvsproject node and choose Delete from the contextual menu. All of the files in
cvsproject
will be deleted from the working directory.- Right-click on
cvsproject
and choose CVS | Check Out from the contextual menu to put the files back in the working directory on the regular working branch.- Right-click on
cvsproject
and choose CVS | Refresh Recursively from the contextual menu to display the checked out files and their status. (The files should appear with the status[Up-to-date])
.- Begin editing one of the files.
You can now work with your files as you wish. Try adding some code to one of the classes you haved added, and save your changes. If you then right-click on the class and choose the CVS | Refresh command from the contextual menu, the results will show that the files have changed. Then right-click on the class's node and choose CVS | Commit from the contextual menu. Your file's status will change from
Locally Modified
toUp-To-Date
.Note: If you use CVS keywords such as
$Log: $
in a file, you will be prompted with a dialog box informing you that your file has been updated outside of the IDE when you choose the CVS | Commit command on that file.Tip: At any time you can use the CVS | Refresh command on any file or directory to refresh the status information. Use the CVS | Refresh Recursively command to start asynchronous status retrieval of an entire directory tree. This can improve the speed of browsing files on large projects (otherwise Refresh commands are dispatched to the version control system as you open folders). It is advisable to refresh recursively after major changes to your version control directory structure. The refresh process can be stopped at any time if desired.
Contents | Prev | Next | Index |