posts - 84, comments - 54, trackbacks - 0, articles - 0
             :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          1.創(chuàng)建項目

          1.1創(chuàng)建Project VOB

          在開始菜單中選擇Rational Software->Rational ClearCase->Adminstration->Create VOB

          選擇Create as a UCM project VOB,不選This VOB will contain UCM components,下一步

          接著指定VOB storage location,下一步

          Administrative VOB的選項中選擇none,結(jié)束

          1.2創(chuàng)建Component VOB

          在開始菜單中選擇Rational Software->Rational ClearCase->Adminstration->Create VOB

          This VOB will contain UCM components,不選擇Create as a UCM project VOB,下一步

          選擇Create VOB as a single VOB-level component,下一步

          What is the project VOB where information about this component will be stored中選擇剛才創(chuàng)建的Project VOB,結(jié)束

          1.3創(chuàng)建UCM Project

          右鍵選擇剛才創(chuàng)建的Project VOB,選擇new->Project

          輸入Project Name, Integration Stream Name, Project Type choose 'Traditional paralletl development', 下一步

          一直選Next直到完成

          1.4創(chuàng)建Subsystem Integration Stream

          ClearCase Explorer中點擊 Join Project按鈕

          選擇剛才創(chuàng)建的UCM Project

          Development View選擇Snapshot, Integration View選擇Dynamic

          后面的步驟就一直選next到結(jié)束

          2.刪除項目

          項目刪除必須從最底層的substream開始,一層層向上刪除。

          刪除stream的時候,必須先刪除其所有的

          • Activity
          • Baseline
          • View

           

          2.1刪除Activity

          命令: cleartool rmactivity

          或者在ClearCase Explorer中選中Activity,直接按Delete

          如果該activitychange set不為空是無法刪除的,提示為:

          Cannot remove activity with versions in its change set.

          ClearCase explorer中右鍵點擊該activity,選擇Change Set標簽,可以看到其中的成員。

          刪除這些成員有兩種辦法:

          方法一:右鍵選擇其中的成員,選擇Version Tree,在Version Tree中刪除其所有版本。這個做法適合于Change Set 中成員較少的情況。

          方法二:如果Change Set中成員成百上千,這個辦法就行不通了,我的辦法是寫一個批處理命令來清除。

          首先,確保本機有該StreamView,否則,執(zhí)行以下命令的時候會遇到Content找不到的錯誤。


          @echo off

          SET VIEW_HOME = D:\views\d_GMS_R1_DEV

          CD %VIEW_HOME%

          cleartool lsactivity -l -in stream:d_GMS_R1_DEV@\EMMS1b1c_pvob > changeset.txt

          rem 使用findstr找到該activity下的chang set成員

          for /f "delims=" %%i in ('findstr ^".*java.*^" %VIEW_HOME%\changeset.txt') do (

          rem y.txt中只有一個y字,用以在刪除確認時輸入Yes

          cleartool rmver -xhlink %%i < c:\temp\y.txt

          )

          很大機會,該Activity中的Change Set并不能一次刪除,而是在lost+found里面生成了新的文件。重復執(zhí)行上面的批處理命令,最終可以將Change Set清空。

          2.2刪除Baseline

          命令:clearcase rmbl

          在刪除已經(jīng)Deliverbaseline時,會遇到以下錯誤而無法刪除:

          Cannot remove baseline that has been delivered.

          驗證可行的辦法是刪除該baselineHyperlink后再強行刪除:

          cleartool des -l baseline:GMS_R1_09_02_2009_1647_ini@\EMMS1b1c_pvob

          baseline "GMS_R1_09_02_2009_1647_ini"

          created 09-Feb-09.16:47:35 by XYZ.CcEMMS_AASGrp@DPTA00398

          owner: HOUSING\XYZ

          group: HOUSING\CcEMMS_AASGrp

          component: GMS_cvob@\EMMS1b1c_pvob

          label status: Incrementally Labeled

          change sets:

          promotion level: INITIAL

          depends on:

          Attributes:

          PromotionLevel = "INITIAL"

          Hyperlinks:

          BaselineLbtype@633542@\EMMS1b1c_pvob -> lbtype:GMS_R1_09_02_2009_1647_ini@\G

          MS_cvob

          Integrate@633545@\EMMS1b1c_pvob -> anyactivity:timeline090209.160724@\EMMS1b

          1c_pvob

          cleartool rmhlink BaselineLbtype@633542@\EMMS1b1c_pvob

          cleartool rmhlink Integrate@633545@\EMMS1b1c_pvob

          cleartool rmbl -force baseline:GMS_R1_09_02_2009_1647_ini@\EMMS1b1c_pvob

          2.3刪除View

          命令:cleartool rmview

          或者在ClearCase Explorer中右鍵選中Stream,選擇Properties->Views->Remove View

          在以上操作過程中,在http://www.scmlife.net搜索到很多有用的信息,推薦大家有相關(guān)問題的時候去那里找找。

          參考資料:

          http://bbs.pmlife.net/thread-15835-1-1.html

          http://bbs.scmlife.com/viewthread.php?tid=2232&extra=&page=2

          http://www.cmdos.net/article/sort03/info-1967.html

          http://www.sec520.com/Article/2009/200901/2177.html


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          主站蜘蛛池模板: 洞口县| 永丰县| 道孚县| 渭南市| 宁阳县| 江都市| 柳江县| 墨江| 高台县| 尖扎县| 西盟| 云安县| 壤塘县| 淮南市| 太仓市| 霍林郭勒市| 安顺市| 璧山县| 安新县| 申扎县| 鄂尔多斯市| 景泰县| 宣城市| 武威市| 怀仁县| 清流县| 五指山市| 张北县| 惠安县| 平阴县| 聂荣县| 保亭| 安西县| 阳城县| 五大连池市| 临武县| 安仁县| 永定县| 绍兴市| 邯郸县| 文化|