how to add directory to source control

1,767 views
Skip to first unread message

mandar

unread,
Mar 24, 2007, 2:01:59 AM3/24/07
to ClearCase
hi all
i mhv just started learning clearcaseLT, so plz forgive me if u
fouind my doubts stupid.
just try to help me out frnds
in cleacaseLT when i m adding any file with add to source control it
is added to my vob
but when i m adding any directory to add to source control then even
after adding to vob the directory contains no elements (it remains
blank)
to add those elements i hv to add them sepearetly again
is it a normal way, or i m making some mistake

plz reply

Brian Tardell

unread,
Mar 24, 2007, 11:04:35 PM3/24/07
to Clea...@googlegroups.com
If you want to do a recursive add I recommend you use 'clearimport'.

mitr

unread,
May 12, 2007, 3:56:53 PM5/12/07
to ClearCase
If you want any file element under directory element in your vob then
you have to add the directory element into the source control first
and then create a new file element under directory element once you
add the file element come back and check in the direcory element.

In CLI
cleartool mkdir dirname
cleatool co -nc dirname
cd dirname
cleartool mkelem file.txt
cd..
cleartool ci -nc dirname
cd dirname
cleartool co -nc file.txt
after you add some codes
just say cleartool ci -nc file.txt


IN GUI

first add your direcory element into the source control and then
create a new file element and add the file into the source control
I hope you got the answer.

Brian Tardell

unread,
May 12, 2007, 6:06:27 PM5/12/07
to Clea...@googlegroups.com
I'm not sure what you want to do, but if you want to just a directory:

>ct mkelem -eltype directory <dir>

Sorry, if this is not what you want to do

Reply all
Reply to author
Forward
0 new messages