3

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)?

Amir Rachum
  • 76,817
  • 74
  • 166
  • 248
  • I was answering your question! Rename your private dir, and use it as source for your clearfsimport. And please restore your question http://stackoverflow.com/questions/5247154/how-to-add-a-directory-tree-to-a-clearcase-repository-in-place – VonC Mar 09 '11 at 14:35
  • @VonC Sorry, I figured out the answer, like you said. When I go to the link, I get "Page Not Found". Is it lost forever? Do you want me to repost it so you can answer it? Sorry for the mess. – Amir Rachum Mar 09 '11 at 14:39
  • I thought you were able to undelete your own question, but then maybe not ;) I can only vote for its un-deletion, so the simplest way would be to repost, if you think it can have added value for others. – VonC Mar 09 '11 at 14:45
  • @VonC asked on meta, a moderator restored it :) – Amir Rachum Mar 09 '11 at 14:48

2 Answers2

2

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.
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

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

Christoph
  • 21
  • 6