Aaron S. Hawley <aaron.s.hawley <at> gmail.com> writes:

> 
> I presume you mean the $Id$ keyword, not $Revision$.
> 
> I believe you could use the -z option to change the timezone and then
> hopefully the date format.  You can specify the -z option for all RCS
> operations by using the RCSINIT
> 
> Coincidentally, the date format you want is what I see by default.
> 
> # cat foo
> $Id: foo,v 1.1 2011/02/21 14:03:57 ahawley Exp $
> # export RCSINIT=-zLT
> # co foo
> foo,v  -->  foo
> revision 1.1
> done
> # cat foo
> $Id: foo,v 1.1 2011-02-21 09:03:57-05 ahawley Exp $
>

Thanks for the reply. After looking into this further it turns out that this is 
not an issue with RCS but with CVS. CVS has a configuration variable 
*DateFormat* that needs to be explicitly set to *old*, otherwise the dates will 
be formatted with a '-' instead of '/'. I thought CVS uses the RCS binaries but 
it has its own code to handle keyword expansion.

The reason I thought it was RCS related is because of the RCS keyword expansion.

Amit


Reply via email to