Re: [cciug] Magic File

From: David Highley (dhighley@highley-recommended.com)
Date: Tue Jan 25 2000 - 22:17:40 EST


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
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>

-- 

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