[Zope-Coders] RCS/CVS Id string magic

Fred L. Drake, Jr. fdrake@acm.org
Wed, 20 Feb 2002 10:36:57 -0500


Andreas Jung writes:
 > Could someone give a short explanation where and why Zope uses
 > informations form RCS/CVS Id/Version strings ? Fred checked in some
 > changes this morning to reduce some dependancies  from these strings.
 > What's behind that magic ?

It's not that Zope was using the information, but that trying to build
versions strings for modules from things like the replacement for
$Revision:$ is sensitive to the specific -kfrob options that were used
to check out the file.  The code to make that safe from core dumps is
sufficiently complex that we don't want to copy it all over the place,
and Python does not provide a convenience routine to help out.

Since the information isn't very useful for normal operations, these
changes remove places where the revision number was parsed out of the
$Revision:$ replacement in C code.  (It's not nearly so hairy in
Python!)


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation