Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1172027
  • 博文数量: 312
  • 博客积分: 12522
  • 博客等级: 上将
  • 技术积分: 3376
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-27 18:35
文章分类

全部博文(312)

文章存档

2016年(3)

2015年(1)

2013年(1)

2012年(28)

2011年(101)

2010年(72)

2009年(13)

2008年(93)

分类: 项目管理

2008-04-01 09:47:53


ClearCase常用命令
1.将整个目录导入clearcase
clearfsimport -r‘源路径’ ‘目标路径’
2.加锁
find . -name '*.*' -exec 'cleartool lock nuser userame1,username2 "%CLEARCASE_PN%"'
3.解锁
find . -name '*.*' -exec 'cleartool unlock  "%CLEARCASE_PN%"'
4.转换格式
chtype  -f compressed_file “fileName”
5.查看VOB的基本信息和UUID
des -l vob:.
6.删除视图
rmview -uuid "UUID"
7.删除lost+found
find . -name '*.*' -exec 'cleartool rmelem -f "%CLEARCASE_PN%"'
8.查询某一天的修改记录
cleartool lshis -r -since 07-dec
9.最基本的操作
cleartool co -nc filename
cleartool ci -nc filename
10.查看自己总共co了多少文件
cleartool lscheckout -cview -me -avobs
11.make目录和文件
cleartool mkdir -c comment newdirectory
cleartool mkelem -c comment newfilename
12.主线、分支文件合并
//查找需要合并的文件
cleartool findmerge . -fversion /main/TEST_Path -print 
//比较文件不同
cleartool diff filename
//查看最新版本
cleartool lsvtree filename
//合并
cleartool merge -to filename  filename @@/main/TEST_path/LATEST  filename @@/main/LATEST
13.标签相关
cleartool mklbtype -nc TEST_LABEL
cleartool mklabel -r TEST_LABEL filename
cleartool rmtype lbtype:TEST_LABEL
//给所有打上TEST_LABEL标签的文件打上TEST_LABEL标签
cleartool mklabel -replace -version /main/TEST_LABEL TEST_LABEL *
//查找打上TEST_LABEL标签的所有文件
cleartool find . -version "lbtype(TEST_LABEL)" -print
//查找打上TEST_LABEL和TEST_LABEL1标签的文件
cleartool find . -element 'lbtype_sub(TEST_LABEL) && lbtype_sub(TEST_LABEL1)' -print
14.察看某目录下的文件
ls
15.man/help命令
cleartool man  xxx
cleartool help xxx
16.放弃co某个文件
cleartool unco -keep filename
cleartool unco -rm   filename
17.更改VOB的Owner:
cleartool protectvob –chown root  /vob/vob.vbs
18. 更改VOB的Group:
cleartool protectvob –chgrp alluser  /vob/vob.vbs
19.增加Additional Group:
cleartool protectvob –add_group group1  /vob/vob.vbs
20.删除Additional Group:
cleartool protectvob –delete_group group1  /vob/vob.vbs
21. 更改group、owner、mod
protect -r -chgrp groupname–chown username -chmod 770 .
22.创建VOB
cleartool mkvob -tag /vobtags/test_code -c "Test" "D:\Data\Tets.vbs"
23. Mount vob
Cleartool mount /vobtags/vob
24. 创建视图
cleartool mkview –tag test /ccvob/views/test.vws
25. 设置当前视图
cleartool setview test
26.设置当前的activity
cleartool setactivity activityname 
27. Check out
Check out一个文件
Cleartool checkout [-reserve][-unreserve] filename
Check out前目录
Cleartool checkout .
Check out当前目录下所有文件
Cleartool Checkout –nc *.* 
Check out当前目录下所有的文件和目录中的文件
cleartool find . $file -exec ‘cleartool checkout -nc $CLEARCASE_PN’
28. Check in
Check in 一个文件
Cleartool checkin filename
Check in 当前目录
Cleartool checkin .
Check in 当前目录下所有文件.
Cleartool Checkin –nc *.*
Check in当前目录下所有的文件和目录中的文件
cleartool find . $file -exec ‘cleartool checkin -nc –ide $CLEARCASE_PN’
阅读(5407) | 评论(9) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2008-07-09 10:12:58

请在SQL Query Analyzer 中运行下面的命令来清空admin的密码: update cqadmin.master_users set encrypted_password='a9db7ca6' where login_name='admin' 注:cqadmin为cq数据库的owner。就是你用来建立链接的用户。

chinaunix网友2008-06-30 17:07:58

Modify vob name unregister -vob \\server2\ccstg_d\VOBs\Exercise.vbs rmtag -vob \Exercise register -vob \\server2\ccstg_d\VOBs\Exercise.vbs mktag -vob -tag EXE \\server2\ccstg_d\VOBs\Exercise.vbs

chinaunix网友2008-04-14 17:47:00

1. When you come to work, the first thing you need to do is: Create a View Command: ct mkview -tag example: ct mkview -tag alex_test /net/nj2/ Other Command: ct lsview list all the views reside in the hosts ct lsview | grep name list specified view by name ct rmview -tag remove an exist view 2. After you create a vew, you need to Set the View to enter it. Then you are able to see the

chinaunix网友2008-04-11 15:20:27

Removing a View To permanently remove a view (including its entries in the ClearCase registry and all references to the view held by any VOBs), use the ClearCase Administration Console: 1 Navigate to the view storage node for the view. This is a subnode of the host node for the host where the view storage directory resides. 2 Click Action > All Tasks > Remove View. You can also use the cleartool rmview command. If you have tried to remove a view by simply removing its storage directory,

chinaunix网友2008-04-11 15:17:04

lsview -l 视图名称(可查询uuid) unregister -view -uuid uuid rmview -f -all -uuid uuid rmtag -view 视图名称