0

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.

Udo G
  • 12,572
  • 13
  • 56
  • 89

2 Answers2

0

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

CrazyCasta
  • 26,917
  • 4
  • 45
  • 72
  • I need a command on the server, something like `some_utility /path/to/repository/file.c,v` – Udo G Sep 25 '12 at 09:03
0

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.

William Pursell
  • 204,365
  • 48
  • 270
  • 300