delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/14/15:49:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3AAFD028.8BE6263@ece.gatech.edu>
Date: Wed, 14 Mar 2001 15:10:16 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: John Daniel Doucette <john DOT doucette AT jjmackay DOT ca>
CC: cygwin AT cygwin DOT com
Subject: Re: CVS DIFF? with cvs 1.11 under cygwin 1.1.9
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010314102637 DOT 00a10de0 AT 142 DOT 176 DOT 136 DOT 60>

Technically, this is really a generic "cvs help" request, and is
offtopic for this list; however, I understand that you are concerned
that the behavior you see is a *cygwin* bug, as opposed to a generic cvs
thing.

John Daniel Doucette wrote:
> 
> Hello All,
> 
> I am learning how to use CVS and as part of this process I set up a test
> repository to 'play' with.  I can then try out various CVS operations on
> test data and become comfortable with CVS before moving on to REAL
> source.  I am having a problem with a certain 'cvs diff' operation.   My
> test repository contains a trunk with several revisions and two branches.
> 
>     |
>     |        (branch_1)
>     |
>   trunk_1 -->branch_1_1
>     |           |
>     |           |
>   trunk_2    branch_1_2
>     |
>     |
>   trunk_3
>     |        (branch_2)
>     |
>   trunk_4 -->branch_2_1
>     |           |
>     |           |
>   trunk_5    branch_2_2
>     |           |
>     |           |
>   trunk_6    branch_2_3
>     |
>     |
>   trunk_7
> 
> There are two branches, branch_1 and branch_2.  The other names are tags
> applied to committed builds of the test software.  If I 'cvs checkout -r
> branch_1 module' I can say 'cvs diff -r branch_2' and get a list of file
> diffs.  However if I want to compare a branch build with the latest trunk
> build I have to either 'cvs checkout -r branch_1 module' followed by 'cvs
> diff -r trunk_7' OR 'cvs checkout module' followed by 'cvs diff -r
> branch_2'.  Doing a 'cvs checkout -r branch_1 module' followed by 'cvs diff
> -r HEAD' does not produce the same results.  Should 'cvs diff' compare by
> default with the latest trunk release? It doesn't. 

This is the correct behavior.  -r HEAD refers to the HEAD of the
currently checked out branch.  Read up on 'sticky tags'.

> If you check out a
> branch then do a update -j however is does correctly update the files that
> I know have changed. 

Yep.

> Is there a way to checkout a branch build, and then
> diff it with the 'latest' trunk build without having to know the tag of the
> latest trunk release? 

Not that I know of.  Perhaps others have a better idea -- but you should
ask this question on a cvs mailing list; it's not a cygwin bug.

--Chuck

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019