Can variables be used in the ClearCase configuration specification?

For example, instead of writing the following:

element * .../my_branch_01/LATEST
element * .../base_branch/LATEST -mkbranch my_branch_01

I would like to write something like this:

MY_BRANCH=my_branch_01
element * .../%MY_BRANCH%/LATEST
element * .../base_branch/LATEST -mkbranch %MY_BRANCH%

Is it possible? What is the correct syntax?

+3
source share
2 answers

The only way to do this in ClearCase is to use the attribute in config-spec .

According to the rules of the version selector, you can make a β€œselect on demand” rule based, for example, on an attribute:

element * ...{MY_ATTRIBUTE_NAME=="aValue"}

will select the version LATESTfor any branch with the attribute ' MY_ATTRIBUTE_NAME' c aValue'.

, , , "cleartool setcs", , , .

, , , mkbranch ( ).


GeekCyclist, :

Base ClearCase, :

  • , .
  • setcs , Cususes view_server spec, config_spec . :
    • (, , )
    • -config, , ,
    • include
  • , ( ClearCase )

"" (.. "" ) ( ), ( Windows), ( )

, ( subst'ed), , .

+3

, ClearCase ( Subversion), , ClearCase .

script, spec , :

element * CHECKEDOUT
include scripted_file_output

cleartool setcs -current

, , include , cleartool , MY_BRANCH.

+1

Source: https://habr.com/ru/post/1705309/


All Articles