Amir Rachum
Amir Rachum

Reputation: 79635

How to add a directory tree to a ClearCase repository?

I have a directory tree with sub-directories, and I want to add it to a ClearCase repository. Currently I need to rename the directory, use CC's mkdir, and so forth for every dir. Is there a way to do this automatically (maybe a ClearCase command I don't know about, or a script)?

Upvotes: 3

Views: 8140

Answers (2)

Christoph
Christoph

Reputation: 21

Clearteam Explorer has a recursive add to source control, at least for web views - AFAIK

Upvotes: 0

VonC
VonC

Reputation: 1324347

I would recommend using clearfsimport.
See:

What is nice with this script is that is will:

  • checkout the parent directories,
  • make the necessary mkdir for adding new directories
  • do the mkelem for adding new elements.

Upvotes: 2

Related Questions