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 [EMAIL PROTECTED]

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 [EMAIL PROTECTED]


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to