Clearcase commands Summary

Source: Internet
Author: User

Element_pname:
/Vobs/XXX/main/XXX/<branch_type>/x

Element_pname_no_ver:
/Vobs/XXX/main/XXX/<branch_type
>
Pname:
/Vobs/XXX/xxx

0. Common commands

1) cleartool mkview-tag
<View_name>/view_store/<view_name>. VWS
2) cleartool rmview-tag
<View_name>
3) cleartool setview <view_name>
4) cleartool
Lsview
5) cleartool ls <-S> <-D>
6) cleartool diff-g-pre
<...>
7) cleartool setcs
8) cleartool EDCs
9)
Cleartool catcs

1. List my checkouts

1) list my checkouts
Checkouted dir
Cleartool lspr-co-S
2) list my checkouts including
Dir
Cleartool LSCO-cview-me-S-r $ (PWD)

2.
Merge


1) Find merge from label to Current Config spec
A.
Print files need merge
Cleartool findmerge.-fversion <label_name>
-Print
Cleartool findmerge.-fversion.../<branch_name>/latest
-Print
B. Merge files
Cleartool findmerge.-fversion
<Label_name>-Merge
Cleartool findmerge.-fversion
.../<Branch_type>/latest-Merge
C. Merge files, if any merge can't
Be completed automatically, start the graphical merge
Cleartool findmerge
.-Fversion <label_name>-merge-GM
Cleartool findmerge.-fversion
.../<Branch_type>/latest-merge-GM
2) Merge
A. Draw merge
Line
Cleartool merge-to-NDA <target_element_pname>
<Source_element_pname>
B. graphical merge
Cleartool merge-G
-To <target_element_pname> <source_element_pname>
 
3) Remove
Merge
CLT rmmerge <source_element_pname>
<Target_element_pname>
 
3. Find Element

1)
Find elements of the branch_type
Cleartool find.-Element
"Brtype (<branch_type>)"-nxn-print
Cleartool find-avobs-Element
"Brtype (<branch_type>)"-nxn-print
 
4. Create/remove
Branch


Cleartool mkbtype-NC <branch_type>
Cleartool
Mkbranch-NC <branch_type>
<Pname> | <element_pname>
Cleartool rmbranch
<Element_pname_no_ver>

5. Change branch_type

Cleartool chtype
<New_branch_type> <element_pname_no_ver>
Cleartool rename
Brtype: <old_branch_type> brtype: <new_branch_type>
 
6.
Describe an element


Cleartool DESC
<Element | element_pname>
Cleartool desc-G
<Element | element_pname>
 
7. Make
Label


Cleartool mklbtype-NC <label_name>
Cleartool
Mklabel-replace <label_name>
 
8. Create
Element


Cleartool mkelem-NC <pname>
 
9.
Compound commands


1) checkin all of the checkouted files
(Dirs)
Cleartool lspr-co-S | xargs cleartool ci-NC
Cleartool LSCO-S
-Cview-me-r | xargs cleartool ci-NC
2) list all of the element_pname in
Of one branch_type
Cleartool find <path>-Element
"Brtype (<branch_type>)"-nxn-print | xargs cleartool LS-s-d
3)
Create a build share
Cleartool lspr-Other | xargs zip/tmp/xxxxxx.zip-y-G
>/Dev/null
4) Remove find Merge files
Find-name "findmerge. *" |
Xargs-T Rm-F
Find-name "*. contrib *" | xargs-T Rm-F
5) Remove
Label
Xxxxxxxxxxxxx | xargs-t-I cleartool rmlabel {}
<Pname>
 
10. Others

1) Lock &
Unlock
CLT lock-obsolete <element_pname_no_ver>
CLT unlock
<Element_pname_pname_no_ver>

2) Remove version
CLT rmver-version <element_pname>
<Pname>
 
3) Mount all vobs
CLT Mount-

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.