Java Tutorial - Java Script :
Basic CVS Commands
There are a few commands that need to be understood to use CVS. Although we do not intend to use CVS from the command line, it is still helpful to understand these commands to provide context for using CVS from any interface.
These commands are described fully in the CVS documentation provided with CVSNT or downloaded from http://www.cvs.org/.
Import. Copies a directory structure and files into a CVS repository, creating a new module. This is the best way to insert a new source code project into a CVS repository.
Add. Adds a single new file or directory to a repository.
Commit. Refreshes the repository with the changes made to code previously checked out.
Checkout. Retrieves a module from the repository and places it in a local directory.
Update. Synchronizes the local copy of the code with the code in the repository. This only makes changes to the local copy and does not affect the repository.
Users of other configuration management systems should be reminded that CVS does not lock a file that has been checked out. This means that it is possible for multiple developers to check out the same files and make changes to
them. However, CVS does not let you check a file back in if it has been altered since you last checked it out.
A repository in CVS is treated as a collection of modules. A module, in turn, has a mapping between a subdirectory structure on the server and one on the client. When a module is imported into CVS, the subdirectory structure from
the client is placed into the repository on the server. When the module is then checked out, that subdirectory structure is recreated on the client and all of the files copied. A module must be checked out before it can be committed or updated. This is true even if the module was imported from the current client
machine.
CVS maintains information on the client by adding CVS subdirectories to each directory it is managing. This information is used to help with the synchronization process, and these directories should not be deleted.
