CVS question: diff between dates on a branch

Ruslan Ermilov ru at FreeBSD.org
Thu Mar 18 05:31:24 PST 2004


On Thu, Mar 18, 2004 at 01:49:07PM +0300, Dmitry Morozovsky wrote:
> Dear colleagues,
> 
> maybe I'm stupid and blind ;-) but I still can't fugure out how can I ask CVS
> to get diff between two states of a branch with known dates (such as today and
> yesterday). All that I found was 'cvs get -jBRANCH:date1 -jBRACH:date2' but
> this looks very sub-optimal. Any hints?
> 
Surprisingly (it's undocumented) but the exact same synopsis seems
to work here with "cvs diff":

$ ident Makefile.inc1
Makefile.inc1:
     $FreeBSD: src/Makefile.inc1,v 1.418 2004/03/18 10:17:03 ru Exp $
$ cat CVS/Tag
cat: CVS/Tag: No such file or directory
$ cvs di -jRELENG_4:2002/01/01 -jRELENG_4:2003/01/01 --brief Makefile.inc1
Index: Makefile.inc1
===================================================================
RCS file: /home/ncvs/src/Makefile.inc1,v
retrieving revision 1.141.2.39
retrieving revision 1.141.2.57
diff -u -p --brief -r1.141.2.39 -r1.141.2.57
Files /home/ru/tmp/cvsv60oN8 and /home/ru/tmp/cvsmonEXm differ


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040318/33b584e4/attachment.bin


More information about the freebsd-hackers mailing list