2014-02-12 41 views
1

我得到下一個錯誤,當我試圖簽入/籤ClearCase中:如何在Rational Clearcase Explorer中創建工程活動?

cleartool: Error: To operate on UCM branch, must be set to an activity and a UCM view. 

好吧,我可以看到here出現這種情況是因爲沒有連接到我使用的視圖活動。我的問題是我如何創建工程活動,並使用Rational Clearcase Explorer將其與現有視圖相關聯。

我需要它以便能夠使用clearcase控制檯簽入/簽出文件。

回答

1

簡單地做一個cleartool mkact

cd /pat/to/your/UCM/view 
cleartool mkact aNewAct 

,將創造並設置一個新的活動,以當前視圖。

任何結賬/簽入之後,將使用該curent活動。


對於啓用ClearQuest的項目,請參見「About creating UCM activities in a project enabled for Rational ClearQuest」:

You do not create UCM activity objects directly.

In a project that is enabled for Rational® ClearQuest®, an activity usually refers to two objects that are linked together:

  • a UCM activity object and
  • a record in a Rational ClearQuest user database whose record type is enabled for UCM.

The process of creating an activity in a project that is enabled for Rational ClearQuest entails the creation of two objects in a specific order:

  1. You create records (based on a record type that is enabled for UCM) in a Rational ClearQuest user database.
    • On Windows®, you can create records from the Rational ClearQuest client or, if policy permits, from Rational ClearCase® windows (Check Out, Check In, or Add to Source Control).
    • On UNIX®, you can create records only from the Rational ClearQuest client.
  2. When you set an activity in a view (which you can do by clicking Actions > WorkOn for a Rational ClearQuest user database record), the following occurs:
    • An activity object is created in the stream to which the view is attached.
    • The activity object is linked to the record in the Rational ClearQuest user database whose record type is enabled for UCM.
      The name of the Rational ClearCase activity is set to match the Rational ClearQuest record's ID.
+0

我嘗試了,我得到了一個錯誤:cleartool:錯誤:‘MKACTIVITY’命令不能在流中使用其中包含在啓用ClearQuest的項目中的 。要在此 流中創建活動,請在其中一個流視圖中使用「setactivity」命令,並且 將ClearQuest記錄標識符指定爲參數。這將導致自動創建一個 活動,該活動與指示的 ClearQuest記錄相關聯。 –

+1

@AntonKasyanchuk好的,我添加了啓用ClearQuest的項目的相關幫助部分。看到我編輯的答案。順便說一句,您使用的是ClearCase和ClearQuest的哪個版本? – VonC