info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs update and file date


From: Eric Siegerman
Subject: Re: cvs update and file date
Date: Thu, 11 Jul 2002 12:58:31 -0400
User-agent: Mutt/1.2.5i

On Thu, Jul 11, 2002 at 12:02:29PM +0200, Mirco Bova wrote:
> I noticed that when I delete a file from the working directory to restore it
> (i.e. I run cvs update on the entire directory) The file is restored but the
> modification date of the file is the current date/time instead the date/time
> when it was last commited or the original mod. date/time.
> 
> This breaks my make chain leading to unwanted rebuild!

This behaviour is intentional, and the reason is specifically to
force a rebuild.  In your particular case, the rebuild might have
been unnecessary, but in general it's very necessary.  Suppose
foo.o was based on rev.  1.5 and you'd just gone "cvs update
-r1.4 foo.c".  Or, closer to home, suppose foo.o was built from a
modified version of 1.5 (i.e. with not-yet-committed changes),
and you decided to revert the changes by doing exactly what you
in fact did.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
Anyone who swims with the current will reach the big music steamship;
whoever swims against the current will perhaps reach the source.
        - Paul Schneider-Esleben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]