Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Sep 1996 16:00:21 -0700
From:      "Justin T. Gibbs" <gibbs@freefall.freebsd.org>
To:        jmb
Cc:        current
Subject:   Re: [Q] cvs diff * 
Message-ID:  <199609082300.QAA01367@freefall.freebsd.org>
In-Reply-To: Your message of "Sun, 08 Sep 1996 15:22:15 PDT." <199609082222.PAA29141@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
>	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
===========================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609082300.QAA01367>