The following sections cover the following tasks:
This task involves searching for files that are still checked out so that you can check them in.
To search for checkouts from the ClearCase Explorer:
The Search folder lists the folder you selected in Step 1.
The Include options let you narrow or widen the scope of the search. By default, the option to include subfolders is selected.
The search option lets you widen the search to include checkouts from other users (select No, include other users) and all views (select No, include all view).
If any checkouts are found, the Find Checkouts dialog box identifies the following (from left to right):
The lscheckout command lists any outstanding checkouts. The command has more parameters than shown in this section, but the command as shown corresponds to the options selected using Find Checkouts from the ClearCase Explorer.
At a system prompt, type this command:
cleartool lscheckout -cview -me -avobs
-cview restricts the list to checkouts made in the current view.
-me restricts the listing to your checkouts only.
-avobs includes checkouts in all mounted VOBs
System response is similar to the following:
\jdoe_denali\mck\rel1\xyz.c, where
After your find outstanding checkouts, you need to investigate the differences. To do so, you use Compare with previous version option. This option is available from the Tools menu in the Find Checkouts dialog box or from the shortcut menu.
Note: When you attempt to compare nontext files such as binary and graphic files, an error message informs you can only use the compare option on text files.
To compare with the previous version from the Find Checkouts dialog box:
To display differences between the checked-out version and its predecessor, use the diff command:
cleartool diff -predecessor filename
For example, cleartool diff -predecessor xyz.c
The Find Checkouts dialog box lists the checkin comments in the Comments field.
To display the checkin comments, use the lshistory command:
cleartool lshistory filename
For example, cleartool lshistory xyz.c
Any checked-out files must be checked in, or the checkout canceled.
You use Tools > Check In to check in a file or Tools > Cancel checkout to cancel a checkout in the Find Checkouts dialog box, or from the shortcut menu.
To check in the file from the Find Checkouts dialog box:
The cleartool checkin command checks in a file. The command format is:
cleartool checkin filename
The cleartool uncheckout command cancels the checkout. The command format is:
cleartool uncheckout filename
After preparing your development stream as outlined in the preceding section, you can start the rebase operation.
The rebase operation involves the following tasks:
The following guides you through a rebase operation.
In the ClearCase Explorer, right-click the root directory of the development view and click Rebase Stream to open the Rebase Stream Preview dialog box (Figure 5).
At a system prompt, type:
cleartool rebase -graphical
See Figure 6.
By default, the dialog box presents the recommended baseline.
It is important to verify that the dialog box displays your development view under Merge work into the following view. If you attached multiple views to your development stream, use the Change button to choose one view for the rebase operation.
Clicking the Details button will show the list of activities in the baseline.
In rebasing your work area to the recommended baseline, ClearCase changes your development stream configuration to select the new recommended baseline. The stream continues to select any undelivered activities created in the development stream.
For snapshot development views, ClearCase starts an update operation to copy the versions of the new baseline into your view. If other snapshot views are attached to your development stream, you must update these also so that they contain the changes in the stream.
For dynamic development views, ClearCase shows the versions of the new baseline without requiring an update operation.
If another team member modified and delivered a version of the same file, you must perform a merge operation when you rebase to a baseline that contains the delivered version.
As it does in a deliver operation, ClearCase merges all nonconflicting differences.
For conflicting differences, ClearCase will prompt you to start the Merge Manager to resolve the conflicts. For information on merging, go to the Merging Your Work module.
After all merge conflicts are resolved, you need to verify that any undelivered work in your work area builds correctly with the element versions resulting from the new baseline.
Testing your undelivered work will undoubtedly involve checking files in and out, and performing several builds until no build errors are reported.
Completing a rebase operation consists of two tasks: