The checkout Command
The checkout command creates or updates the current working directory with copies of source files from the repository. You need to specify the module in the repository from which you require files. Depending on the file structure in that module, files will be copied to recursively created directories, which is similar to creating a mirror image of the module. The following syntax uses the checkout command:$ cvs checkout new_module
By default, all files created have read-write attributes. To change the file attributes, you need to specify the –r command option. The top-level mirror directory is created in the directory where checkout command is invoked and has the same name as the mirrored module. Table B-1 lists the various options that you can use with the checkout command:
Options of the checkout Command
Option Description
-D Uses the most recent revision of a file.
-f Retrieves the most recent revision, if no matching revision is found.
-k Processes keywords according to kflag.
-l Locates a file in the current working directory.
-n Disables the checkout command.
-P Deletes empty directories from the repository.
-p Retrieves files for the standard output.
-R Checks out directory recursively.
-r Implements the revision tag.
-A Resets sticky tags, dates, and –k options.
-c Copies module files.
-d Creates a working directory.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home