Re: [cciug] Magic File

From: A Better Solution, Inc. (cciug@abs-consulting.com)
Date: Wed Jan 26 2000 - 01:05:59 EST


well... maybe..

I have used such a pre-mkelem trigger in the past to prevent core files
from being introduced to the VOB.
Make a rule in the magic file that only uses the name (place it high in the
file or place it in a file that is parsed before default.magic.) so that
magic numbers will not override since many applications create *.bak files
for many types of files..

Create a pre-mkelem trigger
ct mktrtype -ele -all -eltpype backup_file -exec..

that disallows the mkelem...

it worked fine for me in the past..
  -Charles

--- VOB Corleone
       "One day.. and this day may never come... I might ask you for a favor.."

           A Better Solution, Inc.
----------------------------------------------------
Charles Clarke III ClearCase Consultant
A Better Solution, Inc. (770) 252-1500 x22 [phone]
50 Springridge Ct.
Newnan, Ga. 30265 (770) 252-1501 [fax]
                                                 Email:
charles@abs-consulting.com
                                                 http://www.abs-consulting.com

At 07:17 PM 1/25/00 -0800, David Highley wrote:

>Robin,
>
>You can't do this with the magic file. You would need a pre link
>trigger that checkes the file extension and disallows creating the
>element. It needs to be the pre link as the link operation happens
>before you enter the pre mkelem trigger operation.
>
> >
> >
> > Robin,
> >
> > The only way I can see to do this with the magic file is to make the
> element
> > type that corresponds to "*.bak" be one that doesn't exist in
> ClearCase. If
> > I were doing it, I would make a magic file that occurs lexically before
> > default.magic, so that it is parsed first. All that being said, I have
> some
> > considerable doubt that this is the best way to go. It seems to me that
> > putting a checkin trigger in place that disallows checkin of *.bak would be
> > the better choice. That may be my long developer history speaking, as I
> > abhor error messages that can be avoided. Anyway, good luck and best
> > wishes.
> >
> > Ted
> > ______________
> > T. J. Jardine (Ted)
> > Sr. SCM Administrator
> > Aspen Technology, Inc.
> > 19204 North Creek Parkway, #104
> > Bothell, WA 98011 USA Avocation:
> > Voice: 1.425.492.2272 Flight Instructor,
> > FAX: 1.425.492.2125 Airplanes &
> > Instruments
> > E-mail: mailto:ted.jardine@aspentech.com <mailto:ted.jardine@aspentech.com>
> > "Keep the pointy end forward,
> > URL: http://www.aspentech.com <http://www.aspentech.com/>
> > the dirty side down."
> >
> > -----Original Message-----
> > From: Robin LaSalle [ mailto:rlasalle@wav1.wavtrace.com
> > <mailto:rlasalle@wav1.wavtrace.com> ]
> > Sent: Tuesday, January 25, 2000 15:32
> > To: 'ClearCase User's Group'
> > Subject: [cciug] Magic File
> >
> > I want to disallow files with a ".bak" extension from being made elements.
> > How do I do this in the Magic file? Also, should I edit the default file or
> > create a "custom.magic" to add these lines? What are the minimum line
> > requirements for a magic file?
> >
> > Thanks!
> >
> > Robin La Salle
> > Software Configuration Manager
> > WavTrace, Inc.
> > (425) 468-2244
> > rlasalle@wavtrace.com
> >
> >
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> >
> >
> > http://clearcase.rational.com/cciug/mailing_list.html
> >
>
>
>--
>
>
>Regards,
>
>David Highley
>Highley Recommended, Inc.
>2927 SW 339th Street
>Federal Way, WA 98023-7732
>
>Phone: (206) 669-0081
>FAX: (253) 838-8509
>Email: dhighley@highley-recommended.com
>WEB: http://www.highley-recommended.com
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>

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



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