Search code examples
branchclearcase

I have a file on three branches. How do I make sure it only exists on one branch?


Background

I have a clearcase file that has changes on 3 different branches. I am refactoring this file so that, within the same directory, it only exists on one branch. The files on the other branches I will move to their own special directories.

Question

How do I remove the versions of a file on different branches?


Solution

  • A simple cleartool rmname, done in a view set to the relevant branch, should be enough.
    See a detailed description of that command in "About cleartool rmname and checkouts"

    This is far safer than a cleartool rmelem, which would completely deletes one or more elements.