Re: [cciug] Cannot add file to source control with certain config spec - why?

From: Stephen Toop (steve@patriate.com)
Date: Fri Sep 29 2000 - 10:24:02 EDT


John,

At the time the element is first created the only version that exists is
/main/0.

There will be no labels attached to this version as it is new.

The error is caused because you not have a rule that selects a version of
the new element in your config spec.

Changing the line to /main/LATEST achieves this because /main/0 is
/main/LATEST.

To support both label based branch points and the addition of new elements
you might want a config spec that looks like this :

element * CHECKEDOUT
element * /main/per_thread_object_cache/LATEST
element * /main/TC_BUILD_128 -mkbranch per_thread_object_cache
element * /main/0 -mkbranch per_thread_object_cache

Not the forth line.

To take it further you could put a post mkelem trigger on which apply the
desired label and therefore your original
config spec would then work.

HTH
Steve.

At 14:43 29/09/00 +0100, John Lawlor wrote:

>Hi,
>
>I've got a developer working through a pretty standard config spec. On line
>3 they are looking at a label other than LATEST.
>When this developer tried to add an element to the vob they got an error. As
>soon as we changed the 3rd line to look at /main/LATEST -mkbranch etc etc it
>worked fine.
>
>I'm just wondering why the developer couldn't create elements while looking
>at this view?
>
>element * CHECKEDOUT
>element * /main/per_thread_object_cache/LATEST
>element * /main/TC_BUILD_128 -mkbranch per_thread_object_cache
>
>Any ideas just to satisfy my curiosity would be much appreciated.
>
>Thanks in advance,
>
> John.

Steve Toop
Patriate Limited
Highview House, Charles Square
Bracknell, Berkshire,UK RG12 1DF
Tel: +44 (0)1344 646041 Mobile:+44 (0)860 364311
Main Tel: +44 (0)1344 397228
steve@patriate.com URL: www.patriate.com

"Providing Professional, Technical, Expertise for the Rational ClearCase
product family"

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:56 EDT