zoukankan      html  css  js  c++  java
  • clearcase command (windows 常用的几个)

    command

      1. setview  指定某个view你可以操作,否则你将看不到文件,ls,cd 等其它命令无效

        setview  viewname

      2. rename branch type name

        steps :  telnet server ->cleartool setview xxx -> cd /vobs/...  

            -> cleartool rename brtype: old_branch_name  brtype: new_branch_name

      3.  updated file changed list(FCL)

        steps:   telnet server ->cleartool setview xxx -> cd /vobs/...  

            -> cleartool find /vobs/project_folder  -ver “version(…/your_branch_name/LATEST)” -print  

      4.  edit config spec

        steps : right click a folder/file -> enter command line window ->input "edcs"   ->    edit config spec

      5. new a branch type

        steps : right click a folder/file -> enter command line window -> mkbrtype  branch_typename 
       6. remove private file
        cleartool lsprivate –tag your_tag | xargs rm –rf

    config spec rule

       element * .../branch_typename /LATEST   

          - get the latest files of branch_typename

       element * .../main/latest    

          - get the latest files of main branch

       element  /folder/changed_file.c    /main/branch_typename/5    

          - get changed_file.c which located in the 5th node of branch_typename, this command format comes from FCL.

    how to create a new branch?

      1. create new branch from clearcase   注:这个方法只适应于修改少数文件时使用,针对每一个文件单独操作,缺点是每修改一个文件都需要重复以下所有步骤

        steps:

          right click a folder/file -> enter command line window -> mkbrtype -nc  branchtype_name :  create a new branchtype

          ->  mkbranch -nc branchtype_name dstfile  : checkout dstfile


       2. 这个方法主要用于新增项目(需要添加/修改大量文件),这个方法简单且不易出错,创建新分支后,可以随时checkout你所需要修改的文件, it is more smarter.

        steps:

          click right button -> command prompt -> mkbrtype  branch_typename  : new a branch type ->

          config spec rule as below.

          config spec rule :
            element * .../branch_typename /LATEST
            element *  /main/xx/LATEST  -mkbranch branch_typename   
          config spec rule :
            element * .../branch_typename /LATEST
            element *  your_base_branch_type(label)  -mkbranch branch_typename   

  • 相关阅读:
    从零到有模拟实现一个Set类
    node+express+mysql 实现登陆注册
    从路由原理出发,深入阅读理解react-router 4.0的源码
    linux rsyncserver文件同步
    为什么说Python是一门动态语言--Python的魅力
    python基础教程_学习笔记11:魔法方法、属性和迭代器
    list,set,map,数组间的相互转换
    TCP/IP协议族
    宿舍更换的新淋浴喷头"水温vs旋钮角度"关系的研究(曲线)
    单元測试中 Right-BICEP 和 CORRECT
  • 原文地址:https://www.cnblogs.com/lovemo1314/p/3279639.html
Copyright © 2011-2022 走看看