How to add all the files in a folder to source control via cleartool command?

10,495

As mentioned in "How can I use ClearCase to “add to source control …” recursively?", clearfsimport is the way to go.

However, clearfsimport will take a source an import it in your view, so:

  • it is best to keep the source outside your view (to avoid confusion when ClearCase tries to add the source file in the destination which is the same directory)
  • you must "clean out" the source directories first (because the clearfsimport command will import... all the files under the root directory you mention)

See "Creating a new subdirectory structure in ClearCase?" as an example: you can preview the result of an import first.

Share:
10,495
Samselvaprabu
Author by

Samselvaprabu

I am mainly working as a Build and integrator. I am maintaining ESXi servers and doing little bit of Configuration management activities (Base Clearcase and clearcase UCM) as every build and integrator.

Updated on June 04, 2022

Comments

  • Samselvaprabu
    Samselvaprabu almost 2 years

    I am having a folder where lot of files and subfolders , adding it to source control via UI is consuming much time.

    How to add all the files (including files inside subfolder) to source control using cleartool?

    (I am using clearcase UCM)