ClearCase, use clearfsimport to perform brute forc

2019-04-15 17:38发布

问题:

I've messed up my views a bit (big surprise for CC) and I have a child stream that has most of what I need, but not all. My parent stream needs to be updated, but I can't because of some issues (maybe evil twins I dunno).

Is it possible/wise to do the following 1) clear all elements in the parent stream 2) use clearfsimport to perform mass update on child stream 3) deliver child stream to parent

This is of course dependent on the fact that child stream elements are not deleted when deleted from parent.

Should I just clear out all elements of both views and start over? Any suggestions would be appreciated.

回答1:

Yes, you can do a clearfsimport from whatever source you want to the child stream.
But I wouldn't recommend "clearing" (as in "rmnam'ing") all elements from the parent stream, even though it doesn't rmname them in the child stream, as my answer to your previous question details.

If you have a valid source (ie some directory with every file you need), you can clearfsimport it to your child stream view, in order to be complete.

Then try the deliver and identify the potential evil twins: your deliver will stop quickly at the "directory merge" stage, asking you to choose between two (identically named) files: you will chose the one coming from the child stream.
All the other files present in both stream will see their history updated as expected by that deliver.