|
How do I remove files from source control?
There are two situations where you may find that you wish to
remove a file from source control:
-
You added a file to the VOB accidentally while adding a
large amount of files. The file may be a backup file, or a
"~" file, or some other type that was never meant
to be in source control in the first place. In this case,
please email the VOB administrator or put in a
help request for the
files to be removed. Include the view you are working on
and the complete path and name of the file.
-
You are updating a directory and a current file is no longer
needed. In this case use the following steps to remove the
file:
- Check out the directory
-
From the command line: cleartool rmname <filename>
- Check in the directory
This removes the file in the version of the directory
that is on your branch (or otherwise visible in your
view). You will need to perform a merge to bring this
change to the project or main branch.
Why can't I see the Latest version of a file?
Sometimes you will merge your changes back to the product
branch, and discover later that changes on that project branch
are not visible in your view because you continue to see your
old private branch version. The best way to avoid this problem
is to frequently "obsolete" your branch and create a
new private branch to work on, preferably after each merge.
How do I label? Why?
Labels can save "good" points in development. They can
also be used to indicate the file configuration that was
released to an internal or external customer.
How do I attach a label to a file or a series of files? Like
branches, first create the type in the type explorer, then
create instances of the type.
Creating the type:
- Open ClearCase Home Base
- Select the "administration" tab
- Click the "type explorer" button
- Select the VOB
- Double click the "label type" folder
- In the "type" menu, click "create"
-
Name your label in the dialog box, using all upper case
characters.
- Click "okay".
- Click "okay" in the Properties Dialog Box.
- Close the type explorer.
Creating instances of the label type:
To create a label on one file, or just a few files, it is
easiest to use the ClearCase version browser:
-
Right click on the version of the file you wish to apply the
label to.
- Select Properties.
- Select the "Label" tab
- Right click in the label field
- Select "Add Label" from the shortcut menu.
- Type the name of your label in the dialog box.
- Select "Okay"
To recursively label a directory structure it is easiest to use
the GUI, make sure you have created the label type using the
steps above:
- Open ClearCase Home Base
- Select the "Elements and Versions" tab
- Click the "Apply Label" button
- Click "Apply to a dynamic view"
and then select the view with rules set for selecting the
branches and elements you want to label. You should not
have a CHECKEDOUT rule for the view your using.
- Click the "Next" button
- Select the VOB and or directories
Click the "Add" button
Labeling an entire VOB is the best method if so that a
complete product build can be re-created
- Click the "Next" button
- Click the "Browse" button
and select the label you wish to apply
-
Move existing label? Should normally be set to "No,
thank you" unless it is one of your private labels that
you move forward and reuse for a check point reference.
- Enter the reason for labeling in the comment box
- Click "Finish"
Be aware that this command puts the label on whatever version of
the file your config. spec. sees, so be careful that you are
labeling what you want!
You may move a label from one version of the directory tree
recursively to another version. Using the config. spec. that sees
the new version use this command from the command line:
cleartool mklabel recurse -replace <LABEL_TYPE> .
What do I do with an old label or branch?
To obsolete a branchor label (this will make it impossible
to check out or in on your branch, so make sure you have all
your files checked in first!):
- Open ClearCase HomeBase
- Click the "Administation" tab
- Click the "Type Explorer" button
-
Select your VOB in the list that comes up
-
Double click on the "Branch Type" folder or
"Label Type" folder
- Double click on the icon for your branch or label
- Select the "lock" tab
- Select the "Obsolete" radio button
- Click "Okay"
For labels, it is helpful to select "locked" after you
have labeled so that your label isn't accidentally moved by
another user to an incorrect version of the file. Follow the
above instructions, but use the "locked" radio button
rather than the "Obsolete" radio button.
|