Search code examples
clearcase

No Directory Element Version is Selected


I have the following config spec:

element * CHECKEDOUT
element /cl5_sw_ste/DCT/... /main/rel_drop5/int_drop5/cl5_p65719_AUTE/LATEST
element /cl5_sw_ste/DCT/... /main/rel_drop5/int_drop5/LATEST                 -mkbranch cl5_p65719_AUTE
element /cl5_sw_ste/DCT/... /main/rel_drop5/LATEST                           -mkbranch int_drop5
element /cl5_sw_ste/DCT/... /main/0                                          -mkbranch rel_drop5
element * /main/0

This config spec does not let me see a directory element named DCT that lives in the root of VOB cl5_sw_ste. DCT has the following version tree:

cl5_sw_ste/DCT@@\main
cl5_sw_ste/DCT@@\main\0
cl5_sw_ste/DCT@@\main\rel_drop5
cl5_sw_ste/DCT@@\main\rel_drop5\0
cl5_sw_ste/DCT@@\main\rel_drop5\int_drop5
cl5_sw_ste/DCT@@\main\rel_drop5\int_drop5\0
cl5_sw_ste/DCT@@\main\rel_drop5\int_drop5\cl5_p65719_AUTE
cl5_sw_ste/DCT@@\main\rel_drop5\int_drop5\cl5_p65719_AUTE\0
cl5_sw_ste/DCT@@\main\rel_drop5\int_drop5\cl5_p65719_AUTE\1

I would have thought that config spec rule:

element /cl5_sw_ste/DCT/... /main/rel_drop5/int_drop5/cl5_p65719_AUTE/LATEST

Would have selected:

cl5_sw_ste/DCT@@\main\rel_drop5\int_drop5\cl5_p65719_AUTE\1

However, no version is selected. What am I doing wrong?

Thanks, Dave


Solution

  • You need to check out what version of the parent directory of DCT is selected, which is the vob cl5_sw_ste.

    If it is /main/0, then this is normal: this is a placeholder which won't contain sub-elements.
    Which means nothing under the vob cl5_sw_ste will be selected, nor visible.

    Your last rule should be:

     element * /main/LATEST
    

    That would allow to select at least /main/1 of the vob cl5_sw_ste, which should contain the directory DCT.
    That is why I mentioned this stop-rule in your previous question "Can't Create Directory Element With Multi-Branching in Base ClearCase".