Reputation: 3207
I use ClearCase. How can I find out who's checked out a given file?
Upvotes: 2
Views: 2941
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
Reputation: 28673
Just do a cleartool lsco on the file element:
%cleartool lsco <element_name>
Upvotes: 0