srinannapa
srinannapa

Reputation: 3207

How can I discover who's checked out a file in ClearCase?

I use ClearCase. How can I find out who's checked out a given file?

Upvotes: 2

Views: 2941

Answers (2)

VonC
VonC

Reputation: 1324337

That kind of request is often prompted when you try to rmname (DEL) a file through the GUI.

If the file is checked-out in any other branch or any other view... the GUI will refuse to rmname the file!

To quickly see where the file is checked-out, try a

ct lsvtree myFile

and look (or grep) for "CHECKEDOUT" string.

You will se one or several line like:

path\to\myFile@@\main\aBranch\CHECKEDOUT view "aViewTag"

But remember: you can also force a rmname through the CLI (Command-Line Interface) cleartool.

Assuming you are in the correct path of the file:

cleartool co -nc .
cleartool rmname -force myFile
cleartool ci -nc .

the -force option (not available through GUI) will allow you to rmname your file even if it is already checked-out in another view/branch.

Upvotes: 3

sateesh
sateesh

Reputation: 28673

Just do a cleartool lsco on the file element:

%cleartool lsco <element_name>    

Upvotes: 0

Related Questions