I vaguely remember cvs... :-)
The usual way to tell cvs which repository you are using is with the CVSROOT
environment variable. If the repository is on localhost then this can just be a full pathname.
The usual way to get revision history on a file is not to examine the repository-wide history file, but rather it is to run the cvs log
command which will extract the rcs revision information for a given file or subtree.
Example:
$ echo $CVSROOT
/home/ross/cvs
$ cvs log q.rb
RCS file: /home/ross/cvs/R3/q.rb,v
Working file: q.rb
head: 1.1
branch: 1.1.1
locks: strict
access list:
symbolic names:
R1: 1.1.1.1
ROSS: 1.1.1
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
----------------------------
revision 1.1
date: 2009-11-12 10:36:27 -0800; author: ross; state: Exp; commitid: MlYKy8V908Lmagbu;
branches: 1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 2009-11-12 10:36:27 -0800; author: ross; state: Exp; lines: +0 -0; commitid: MlYKy8V908Lmagbu;
initial import
=============================================================================