Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2001 06:30:46 -0700 (PDT)
From:      Mike Harding <mvh@ix.netcom.com>
To:        jdp@polstra.com
Cc:        stable@freebsd.org, krentel@dreamscape.com
Subject:   Re: mod times after cvsup
Message-ID:  <20011012133046.6258A13243@netcom1.netcom.com>
In-Reply-To: <200110120436.f9C4aL580826@vashon.polstra.com> (message from John Polstra on Thu, 11 Oct 2001 21:36:21 -0700 (PDT))
References:  <200110060531.f965Vdi48717@dreamscape.com> <200110120436.f9C4aL580826@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help

As a happy modem user of cvsup, I shudder at the idea of deleting the
whole source tree whenever I change labels...

- Mike H.

   Date: Thu, 11 Oct 2001 21:36:21 -0700 (PDT)
   From: John Polstra <jdp@polstra.com>
   Cc: krentel@dreamscape.com
   Organization: Polstra & Co., Seattle, WA
   Sender: owner-freebsd-stable@FreeBSD.ORG
   List-ID: <freebsd-stable.FreeBSD.ORG>
   List-Archive: <http://docs.freebsd.org/mail/>; (Web Archive)
   List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
   List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-stable>
   List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-stable>
   X-Loop: FreeBSD.ORG
   Precedence: bulk

   In article <200110060531.f965Vdi48717@dreamscape.com>,
   Mark W. Krentel <krentel@dreamscape.com> wrote:
   > But I'm still puzzled by the following.  I cvsup src-base (just six
   > files) with tag=RELENG_4_2_0_RELEASE into an empty, temp directory and
   > I get this:
   [...]
   > Fine, but now I change tag=RELENG_4_4_0_RELEASE and I get:
   [...]
   > Why did it edit Makefile but checkout new copies of Makefile.inc1 and
   > UPDATING?  All of those files previously existed.

   The short answer is that it checks out new copies whenever it realizes
   that it can't update the file properly by applying diffs alone.  The
   reasons for that are complicated, but the fact that you changed the
   tag has something to do with it.

   > And by setting the mtime for UPDATING to Sep 14, there's the
   > possibility of the above pitfall you describe.  Well, not for
   > UPDATING because it's not a dependency in a Makefile, but it could
   > if the file was updating.c.

   Yes, that's probably a bug.  I suspect that when CVSup gives up on
   applying diffs and checks out a fresh copy instead, it forgets that
   the file should be touched instead of receiving the timestamp of the
   revision.  I have made a note in my to-do file to look into this.

   But, whenever you switch tags you should most likely delete your
   /usr/obj tree anyway, just as a matter of safety.

   John
   -- 
     John Polstra
     John D. Polstra & Co., Inc.                        Seattle, Washington USA
     "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa


   To Unsubscribe: send mail to majordomo@FreeBSD.org
   with "unsubscribe freebsd-stable" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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