ClearCase Operations and Commands
Views
View Creation
- Snapshot View:
mkview -snapshot [-vws <view storage location>] – tag
<view tag> <view location>
- Dynamic View:
mkview – tag <view tag> <view storagelocation>
View Deletion
- Snapshot View:
rmview –force <view location>
- Dynamic View:
rmview –force <view storage location>
Set Config Spec (includes view update):
setcs –tag <view tag> <config spec path>
Explicit View Update in CMS Profile:
update <view directory>
Check if View is Registered:
lsview
Mount VOB for Dynamic View:
lmount <vob tag>
Files
Initial Creation:
- Checkout Directory:
checkout –nc <path>
- Add File:
mkelem –mkpath –nc
- Checkin Directory:
checkin –comment “added ” <path>
Checkout:
checkout –nc <path>
Undo Checkout:
uncheckout –rm <path>
Checkin:
checkin –comment <comment> -identical <path>
Change State:
[mkattype –ordinary –comment “Stages document state” <attribute
type specification>]
mkattr –replace <attribute type> ‘“<attribute value>”’
Update File in Snapshot View:
update –force –overwrite –log “NUL”<parent directory>
or:
update –force –overwrite –log “NUL”
Check if File is View-Private:
describe –fmt “%Vn”
Determine Information about Current Version:
describe –fmt “%Vn\n%PVn\n%Nd\n%u\n%[pkitStatus] ]a\n%l\n%c
=*&*=*&*HISTORY_ENTRY_DELIMITER*&*=*&*=\n”
Determine Version History Information:
lshistory –fmt “%Vn\n%PVn\n%Nd\n%u\n%[pkitStatus] ]a\n%l\n%c
=*&*=*&*HISTORY_ENTRY_DELIMITER*&*=*&*=\n”
Download Old Version:
get –to <temporary path> <element path>@@<version selector>
Add Label:
–ordinary –comment “created by Stages” <label type>]mklbtype[
mklabel –replace <label type>