Monday, March 17, 2008

The release Command

The release command releases or cancels the checkout command. This indicates that a local working copy is no longer in use. A release is logged in the CVS history file. This command is never invoked from the local working copy. It has to be invoked from a directory one level above it. You can specify an absolute path to the CVS repository using the –d global option. Using the –d option, you can delete the local working copy including new directories created in it. Using the release command, you can specify that the files will not be used. You can also check if there are any uncommitted changes and decide whether to add the file to the repository.

For example, the following code invokes the release command from the parent directory:
$ cd
$ cvs –d /usr/local/my_repository release –d my_project

In the above code, you need to specify an absolute path to the repository because CVS does not reside in the parent directory. The my_project directory is released from my_repository and deleted along with the subdirectories it contains.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home