rcs script help

Terrence Enger tenger-ew0EfhANLmVEfu+5ix1nRw at public.gmane.org
Mon Jan 19 08:35:15 UTC 2004


At 19:23 2004-01-17 -0500, you wrote:
> At 06:27 AM 01/16/2004, you wrote:
> > Does anyone know where I can find a perl or bash
> > script that will decorate an RCS controlled file so
> > that each line has a prefix with username and version
> > number?
>
> I can't say I have heard of such a script/program. Its likely you will have 
> to write one yourself. Do you really need to know who last checked in a 
> given line of code and in what version of the file for every line in a 
> file? Could you not get the information you might need through a detailed 
> ChangeLog file?
>
>
> Cheers!
>
> Kevin.  (http://www.interlog.com/~kcozens/)

Well, `cvs annotate` looks like what you want.  The
documentation of the command
<http://www.cvshome.org/docs/manual/cvs-1.12.5/cvs_8.html#SEC79>
includes a very skimpy example of the output.  You could
write something following the example of cvs; source tree is
at <http://ccvs.cvshome.org/source/browse/ccvs/>, current
source of annotate.c is
<http://ccvs.cvshome.org/source/browse/ccvs/src/annotate.c?rev=1.12&content-
type=text/x-cvsweb-markup>.
Probably easier, just set up a cvs repository and copy in
your rcs file.  If this is a one-off task and you do not
want to learn about cvs, send me your rcs file, and I can
send back the output.

HTH,
Terry.


--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list