Under the hood: What happens when you add to source control

The mkelem or Add to source control command can be used to add file system objects to source control.

Using the Windows® graphical user interface

The Add to Source Control command always creates an element and initializes its version tree by creating a single branch (named main) and a single, empty version (version 0) on that branch. The following options in the Add to Source Control window determine optional Rational® ClearCase® behavior:

Using the command line interface

The mkelem command always creates an element and initializes its version tree by creating a single branch (named main) and a single, empty version (version 0) on that branch. The following arguments for the mkelem command determine optional Rational ClearCase behavior:

Other views do not see the element until the parent directories of the element are checked in (you must do this yourself) and you check in the file or directory.

Related concepts
About auto-make-branch during element creation
About importing files
About file types and element types
About access mode
About element object and version references
About creating elements in replicated VOBs
About the version tree
About sharing control of a branch with developers at other sites
How your views are populated in base ClearCase

Feedback