I would like to uncheckout list of elements in hierarchical manner
Ie: Lt say folder1
& folder2
, folder3
are framed in hierarchical basis:
folder3
is child,folder2
is parent,folder1
is grand parentI would like to uncheckout child first then parent then garand parent:
how I can become to know which one is parent and which one is grand parent?
Leads are welcomed.
You would need to write a script which walks all elements of each folder, starting with the one having the most depth: "F3
".
The script would then go one level up (possibly F2
) and repeat the process for all elements, except subfolders.
And then one level up, until you get to F1
.
In each folder, you can combine cleartool find -exec
with the unco
command in order to automate the ct unco step
.
See "How do I perform a recursive checkout using ClearCase?" (except in your case, it is unco, with files first, folders second)
Reminder: unco means unco files first, and then only then: unco folders.