[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to parse CVS output?
From: |
Paul Sander |
Subject: |
Re: How to parse CVS output? |
Date: |
Sun, 18 Feb 2001 13:50:30 -0800 |
For this particular capability (see if a file exists under CVS), could you
not use "cvs status" rather than "cvs log"?
There's a program called "rinfo" that scans RCS files for interesting
things and writes its output in a format that can be interpreted
automatically. You can find it at http://www.wakawaka.com/source.html .
Perhaps it could be of use to you, if your web server has direct access
to the CVS repository.
--- Forwarded mail from address@hidden
I have to write some PHP code to invoke CVS. Calling cvs is trivial,
but parsing the output isn't. For example, when I call cvs log to see
if a file exists, I want to be able to say 'yes' or 'no', instead of
printing the raw output. You get the idea.
PHP has Perlesque regex functions, so I can do all this by hand, but
I'd feel better if I had formal specs or something on the output
generated by cvs. (Other than the source code, I mean.)
--- End of forwarded message from address@hidden