سؤال

Using the rlog command I can analyze the commit log to a file on the CVS server itself (that is, directly accessing the file ending in ",v"). That's fine.

Is there a similar command line utility that prints the current HEAD version of that file to stdout?

I need this for a custom CVS status utility (something like ViewVC, but made specifically for a certain repository) that will be written in PHP.

هل كانت مفيدة؟

المحلول

To print the content of the file that would be checked out, just use co -p filename. That will print a small header including the revision number to stderr, and the content of the file to stdout.

نصائح أخرى

You probably want cvs log filename. Not sure buy you might need to do cvs update filename first.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top