Files and directories can be checked out from any of the following places:
The tutorial focuses on checkouts made from the ClearCase Explorer on Windows and the command line on UNIX.
Follow the instructions for the platform of interest to you:
You learned how to check in a file from the Windows Explorer. In this section, you will learn how to check out a file from the ClearCase Explorer.
A white check mark in a green circle to the left of the filename indicates the file is checked out.
This exercise requires that you performed the exercise in section Adding Files to Source Control earlier in this module.
ClearCase checks out the file; a white check mark in a green circle appears to the left of the checked-out file.
From a command or terminal window, enter this command:
cleartool checkout -reserved -c “comment” filename
For example, you need to fix a typo in a text string that appears in a dialog box. A Quality Assurance engineer reported the problem in a defect report, number DEF0012345. The typo is in the file foo.c.
To check out the file foo.c from a command or terminal window, you would enter this command:
cleartool checkout -reserved -comment “Fix DEF0012345 - typo in text string” foo.c
Check out the author.txt file, specifying an activity and adding a comment, by typing the following commands at the system prompt of a terminal window:
ClearCase checks out the author.txt file.