Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.

ClearCase Support: Renaming and Moving Elements

Ever wonder how to rename or move an element (file or directory) in a VOB?

Here's how. First, check out the directory where the element is in, since you will be changing the directory listing and not the element itself. This directory is called the "parent directory" of the element. Second, run this command:

cleartool move OLD_NAME NEW_NAME

Finally, check in the elementís parent directory.

Next, to move a file from one directory to another directory within the same VOB, checked out both parent directories of where you are moving the element from and where you are moving the element to. Next, run basically the same command:

cleartool move OLD_PATH NEW_PATH

You can even rename the element at this time. Finally, don't forget to checkin both parent directories.

by Phil for Humanity
on 20070819

Related Articles
 » ClearCase Support: How to Find Checked Out Elements
 » ClearCase Support: Creating Elements
 » ClearCase Support: How to Delete a View in ClearCase