Effects of commands in ClearCase

 

Introduction

This section describes the ClearCase commands run when Objecteering ClearCase MDAC commands are executed.

 

The following table details the ClearCase commands which are run for each Objecteering command.  Users must have the right to run these commands, as well as read-write rights for all the files which make up the repository.

 

The Objecteering interface suggests that a comment be entered when an element is created or checked-in.  Certain comments are added automatically by the Objecteering ClearCase MDAC, for example, during the check-out/check-in of a directory for the creation of a new element.

 

Note:      So as to avoid complicating the table, it should be pointed out that certain operations are carried out with comments and others without comments.  In the description of the commands, we do not, therefore, indicate options concerning comments.

 

 

Objecteering commands

ClearCase commands

Check-out

cleartool checkout <file>

Check-in

If the element has not been modified, the Objecteering "Check-in" command runs the ClearCase "Undo check-out" command.  This operation is used to limit the number of versions of an element in ClearCase.

To know whether or not the element has been modified before running the check-in:

cleartool diff -predecessor <file>

Check-in of the element:

cleartool checkin <file>

Check-in and check-out

Check-in followed by a check-out

Create a model element (NameSpace except Enumeration)

Check-out of the directory:

cleartool checkout <directory>

Creation of the element:

cleartool mkelem -ci -ptime <file>

Check-in of the directory:

cleartool checkin <directory>

Destroy a model element (NameSpace except Enumeration)

 

Check-out of the directory:

cleartool checkout <directory>

Destruction of the element:

cleartool rmname <file>

Check-in of the directory:

cleartool checkin <directory>

Undo check-out

cleartool uncheckout –rm <file>

Apply label

Retrieval of the different labels:

cleartool lstype -kind lbtype -fmt  "%En " –invob <VOB>

Attachment of a label:

cleartool mklabel <label> <file>

History

cleartool lshistory –graphical <file>

Version tree

cleartool lsvtree –graphical <file>

Import element from repository

No ClearCase operations

Project check-in

Check-in of all the elements of the Objecteering project in check-out

Properties

cleartool describe –graphical <file>

Create merge arrows

cleartool merge -ndata -nc -to <targetFilename> <originFilename>