关键字:ClearCase Config_Spec 规则 UCM1.1 <!--[endif]-->UCM规则
一般情况下,不要修改UCM规则,而且ClearCase的公开文档中没有对UCM规则的描述,本文只是作者对UCM规则的试验与理解获得,不保证正确性。
以下是一个UCM 视图的Config_Spec:
ucm
identity UCM.Stream oid:9fd98bf2.f8be42ba.90b8.b4:5c:bd:2c:8d:66@vobuuid:3073f95a.f08a45d2.bc05.ea:ff:4e:97:8b:ea 1
# ONLY EDIT THIS CONFIG SPEC IN THE INDICATED "CUSTOM" AREAS
#
# This config spec was automatically generated by the UCM stream
# "Only_Comp1_Int" at 2006-4-19 13:17:50.
#
# Select checked out versions
element * CHECKEDOUT
# Component selection rules...
element "[0a71c94ae2f74f80a1a7e70ef7722ca1=\Train]/Comp1/..." .../Only_Comp1_Int/LATEST
element "[0a71c94ae2f74f80a1a7e70ef7722ca1=\Train]/Comp1/..." /main/0 -mkbranch Only_Comp1_Int
element "[0a71c94ae2f74f80a1a7e70ef7722ca1=\Train]/Comp1/..." /main/0 -mkbranch Only_Comp1_Int
end ucm
#UCMCustomElemBegin - DO NOT REMOVE - ADD CUSTOM ELEMENT RULES AFTER THIS LINE
#UCMCustomElemEnd - DO NOT REMOVE - END CUSTOM ELEMENT RULES
# Non-included component backstop rule: no checkouts
element * /main/0 -ucm -nocheckout
#UCMCustomLoadBegin - DO NOT REMOVE - ADD CUSTOM LOAD RULES AFTER THIS LINE
ucm与end ucm标识了UCM规则的开始与结束。在其内的所有规则块的解释都按UCM规则进行。
<!--[if !supportLists]-->1.1.1 <!--[endif]-->Inentity UCM.Stream
identity UCM.Stream描述了该视图所attach的Stream的信息,这样,视图的SetActivity、Checkout、Chekcin等操作可以关联到Stream上。