From owner-freebsd-current Sun Sep 8 16:00:25 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA01376 for current-outgoing; Sun, 8 Sep 1996 16:00:25 -0700 (PDT) Received: from freefall.freebsd.org (localhost.cdrom.com [127.0.0.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA01367; Sun, 8 Sep 1996 16:00:21 -0700 (PDT) Message-Id: <199609082300.QAA01367@freefall.freebsd.org> To: jmb cc: current Subject: Re: [Q] cvs diff * In-reply-to: Your message of "Sun, 08 Sep 1996 15:22:15 PDT." <199609082222.PAA29141@freefall.freebsd.org> Date: Sun, 08 Sep 1996 16:00:21 -0700 From: "Justin T. Gibbs" Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > i want to cvs diff an entire directory. > > "cvs diff *" fails. > >Aspen:[24] cvs diff * >cvs diff: Diffing CVS >cvs diff: cannot open CVS/Entries for reading: No such file or directory > > huh? cvs diff diffs all the files and recursively all directories in the current directory. If you haven't changed anything in your local checked-out tree, then it will show nothing because there is no difference between your version and the one you checked out. The diff is always relative to the last version you checked out unless you specify a revision. >Aspen:[25] ls -Flag CVS/Entries >-rw-rw-r-- 1 root wheel 1540 Aug 26 06:39 CVS/Entries >Aspen:[26] id >uid=1000(jmb) gid=20(staff) groups=20(staff), 0(wheel), 117(dialer) > > cant even diff a single file! CVS expects you to specify files or directories that appear in the repository if you specify anything at all. The CVS directory holds revision information about your checked out tree and is invalid. >Aspen:[36] cvs diff vm_page.c You haven't changed anything in that file. >Aspen:[37] grep vm_page.c,v vm_page.c > * $Id: vm_page.c,v 1.62 1996/07/30 03:08:15 dyson Exp $ >Aspen:[35] head -1 /home/ncvs/src/sys/vm/vm_page.c,v >head 1.63; > > but if i spec a revision to diff against, it works! Right. You could also do: cvs diff -r HEAD and get the same results. > >Aspen:[39] cvs diff -c -r1.63 vm_page.c | more >Index: vm_page.c >=================================================================== >RCS file: /home/ncvs/src/sys/vm/vm_page.c,v >retrieving revision 1.63 >retrieving revision 1.62 >diff -c -r1.63 -r1.62 > > this behavior does not match the man page (as i read it) I believe it does. >jmb -- Justin T. Gibbs =========================================== FreeBSD: Turning PCs into workstations ===========================================