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)?
+1
A:
I would recommend using clearfsimport
.
See:
- "How can I use ClearCase to “add to source control …” recursively?".
- "Creating a new subdirectory structure in ClearCase?"
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.
VonC
2010-07-28 11:34:54
Thanks! This was one of the most annoying things in CC for me...
Amir Rachum
2010-07-28 12:00:31