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

From: John Lawlor (john@wbtsystems.com)
Date: Fri Sep 29 2000 - 09:43:01 EDT


> -----Original Message-----
> From: John_Falasco@hyperion.com [mailto:John_Falasco@hyperion.com
> Sent: Tuesday, September 19, 2000 7:37 PM
> To: John Lawlor
> Cc: James_Jenkins@aici.com; xCciug
> Subject: RE: [cciug] Trigger and Perl problem.
>
>
>
>
> >From NT Explorer you cannot predict the current working
> directory, so referring
> to "install/makefile2" is inadequate. You must use the
> CLEARCASE_XPN environment
> variable to capture the vob-extended path name to the element.
> -John
>
>
>
>
>
>
>
> "John Lawlor" <john@wbtsystems.com> on 09/19/2000 01:50:11 PM
>
> To: James_Jenkins@aici.com
> cc: "xCciug" <cciug@atria.com> (bcc: John Falasco)
> Subject: RE: [cciug] Trigger and Perl problem.
>
>
>
>
> Thanks James,
>
> I've got the trigger and perl script to checkout both files on one action.
>
> Just one problem - it works fine when I do it through the command line
> 'co -nc [filename]', but when I right click on the file in Explorer and
> select check it out, it only does one file and does not seem to fire the
> trigger.
>
> Does anybody have any ideas how I can get this to work with
> explorer on NT?
>
> Thanks in advance,
>
> John.
>
> > -----Original Message-----
> > From: James_Jenkins@aici.com [mailto:James_Jenkins@aici.com
> > Sent: Tuesday, September 19, 2000 6:15 PM
> > To: John Lawlor
> > Subject: Re: [cciug] Trigger and Perl problem.
> >
> >
> >
> > John,
> >
> > Is this a mixed environment like unix and nt? perhaps you should use
> > a set of statements to determine the OS like:
> >
> > # Determine OS
> >
> > if ($OS eq 'nt') {
> > $CT = 'cleartool';
> > } else {
> > $CT = '/usr/atria/bin/cleartool';
> > }
> >
> >
> >
> >
> >
> >
> > "John Lawlor" <john@wbtsystems.com> on 09/19/2000 12:36:40 PM
> >
> > To: cciug@rational.com
> > cc: (bcc: James Jenkins/OH/AICI/US)
> >
> > Subject: [cciug] Trigger and Perl problem.
> >
> >
> >
> >
> > Hi,
> >
> > I'm trying to setup a trigger that will checkout 1 file with
> > another. (i.e.
> > if someone checks out makefile1 then makefile2 will automatically be
> > checked
> > out aswell);
> >
> > I've made the trigger type and applied it to one file,
> >
> > cleartool mktrtype -replace -element -all -preop checkout -execwin
> > 'd:\perl\clearcase\checkout.pl' -comment "Test stuff" TEST_TRIGGER
> > cleartool mktrigger TEST_TRIGGER makefile1
> >
> > Then the perl script tries to checkout the other file.
> >
> > ***********************************************************************
> > @rem = 'Perl, ccperl read this as an array assignment & skip the goto
> > @echo off
> > goto endofperl
> > @rem ';
> > @rem = 'Perl, ccperl
> > @echo off
> > goto endofperl
> > @rem ';
> > #!/usr/atria/bin/Perl
> > #
> >
> > $filename = "install/makefile2";
> >
> > checkout_file ();
> >
> > exit;
> >
> > sub checkout_file ()
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.

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



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