Chinaunix首页 | 论坛 | 博客
  • 博客访问: 303762
  • 博文数量: 48
  • 博客积分: 2635
  • 博客等级: 少校
  • 技术积分: 495
  • 用 户 组: 普通用户
  • 注册时间: 2005-02-16 18:07
个人简介

软件开发领域都关心。

文章分类

全部博文(48)

文章存档

2013年(1)

2012年(1)

2011年(4)

2010年(3)

2009年(4)

2008年(7)

2007年(13)

2006年(3)

2005年(12)

分类: LINUX

2007-08-09 15:34:47

Some useful clearcase commands:

a .Create branches branch_name1 from /main/0, merge them from other branch branch_name2

clt find . -version 'version(.../main/0)' -print -exec 'cleartool mkbranch -nc -version /main/0 branch_name1 $CLEARCASE_PN;cleartool merge -to $CLEARCASE_PN -version /main/branch_name2/LATEST'

b. check in all the checkedout elements

        clt lsco -cview -recurse -short .|xargs cleartool ci -nc

c. label the last version of branch branch_name

        clt find . -version 'version(/main/brach_name/LATEST)' -print -exec 'cleartool mklabel -nc LABEL_NAME $CLEARCASE_PN'

        use this command to check whether all the files are labeld:

        clt find . -version 'version(/main/brach_name/LATEST) &&! lbtype(LABEL_NAME)' -print

 d. check the labeled files. This command print the files labeled by LABEL_04, but LABEL_03.

        clt find . -version 'lbtype(LABEL_04) &&! lbtype(LABEL_03)' -print

 e. merge from version

    print the file need merge

         clt findmerge . -fver LABLE_01 -print 

 

阅读(2519) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~