ClearCase 最常用命令记录
2007-10-13 09:40
381 查看
同事去开会,我等他们没有事做,整理一点点东西。
write some basic knowledge about Clearcase.
常用命令:
创建view:clt mkview -tag view_abcd /view_store/view_abcd.vws
设置view: clt setview view_abcd
编辑config specification: clt edcs
创建branch type:clt mkbrtype dbg_branch1_comments
在某个文件的当前branch上, 拉出一个branch:
clt mkbranch dbg_branch1_comments filename.c
now you have make branch on the file, and checked it out.
you can edit it with gvim.
After changed codes, you can complie it successfully, and test the result, you can check it in.
clt ci filename.c
If you want to check out it again:
clt co filename.c
To change the branch name to a formula name you can use the command:
clt rename brtype:dbg_branch1_comments brtype:crnumber_branch1_comments
To see the version tree of a file:
clt lsvtree -g filename.c
To see which files is included in a branch, you can edit a script like this find_branch.sh:
echo "$1"
cleartool find -avobs -element "brtype("$1")" -nxn -print | xargs cleart
ool ls -s|grep "$1"
To compare files, I write a useful script file mydiff.
You can use xcc& to open graphic clearcase. So you can do most thing through the menu.
write some basic knowledge about Clearcase.
常用命令:
创建view:clt mkview -tag view_abcd /view_store/view_abcd.vws
设置view: clt setview view_abcd
编辑config specification: clt edcs
创建branch type:clt mkbrtype dbg_branch1_comments
在某个文件的当前branch上, 拉出一个branch:
clt mkbranch dbg_branch1_comments filename.c
now you have make branch on the file, and checked it out.
you can edit it with gvim.
After changed codes, you can complie it successfully, and test the result, you can check it in.
clt ci filename.c
If you want to check out it again:
clt co filename.c
To change the branch name to a formula name you can use the command:
clt rename brtype:dbg_branch1_comments brtype:crnumber_branch1_comments
To see the version tree of a file:
clt lsvtree -g filename.c
To see which files is included in a branch, you can edit a script like this find_branch.sh:
echo "$1"
cleartool find -avobs -element "brtype("$1")" -nxn -print | xargs cleart
ool ls -s|grep "$1"
To compare files, I write a useful script file mydiff.
You can use xcc& to open graphic clearcase. So you can do most thing through the menu.
相关文章推荐
- git常用命令记录
- linux 常用命令记录
- docker常用命令记录
- Emacs常用命令记录at Mac
- linux 下常用命令记录
- CURL常用命令记录--用于简单测试接口
- Linux常用命令记录
- MATLAB学习过程常用命令记录(作图)
- docker 常用命令记录
- Linux上Clearcase常用命令
- MATLAB学习过程常用命令记录(函数)
- vim 常用命令(持续记录)
- 简单记录下git的常用命令
- 二十七、Linux下常用的shell命令记录
- (Ubuntu) 常用命令大全[记录]
- MongoDB常用命令记录
- Linux常用命令记录
- vim 个人常用命令记录
- MySQL数据库的常用命令语句记录——安全用户语句及函数
- Linux下常用的shell命令记录