Re: RCS tags
| From: | Anil Madhavapeddy | Date: | Fri, 09 Feb 2001 00:06:48 +0000 |
| Subject: | Re: RCS tags | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1314@lists.php.net to get a copy of this message | ||
Chuck Hagenbuch wrote:
> Quoting Colin Viebrock <colin@easyDNS.com>:
>
> > What about a standard method?
> >
> > function _get_rcs_id() {
> > return '$Id$';
> > }
>
> Well, that'd be _getRcsID() by PEAR standards (I think I like
_getRevisionId()
> a little better), but I don't have any real objections to it... we don't
want
> to introduce too many things like this, though, and bloat standard
packages...
>
Why not just do:
// $Revision$
Seriously - you shouldn't be actually comparing RCS ids from a program; my
suggestion was purely for a simple visibility test. I think the only
version function that a PEAR package should be obliged to have is an
author-defined version, which can encompass a set of changes, and the RCS
tag should just stick around in the comments where it can be seen easily.
Anil