[Top][All Lists]

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

Re: CVS update, set date on local harddrive to same as the repository ti

From: Paul Sander
Subject: Re: CVS update, set date on local harddrive to same as the repository time stamp
Date: Thu, 8 May 2003 12:48:09 -0700

>--- Forwarded mail from address@hidden

>>> Erik Andersson wrote:
>>>> I need to get some files from my CVS repository and I also need the
>>>> date/time stamp for those files to be the same as in the repository. Is
>>>> that possible?

>> Max Bowsher wrote:
>>> No, not without either modifying cvs or doing some nastily complicated
>>> scripting. (You could get the dates via cvs log).

>Erik Andersson wrote:
>> Thank you Max for that information.
>> Maybe there is someone who have written such a script already? It is quite
>> importent for my project that we can be able to do that..

>Just curious, but why? The current behaviour of cvs is for a reason -
>"make", for example, would get really confused if cvs did take timestamps
>from the repository on update.

I once worked in a shop where the users thought it would be a good idea to
know the last time a file was checked in by doing an "ls -l" on it.  They
had me modify CVS so that it would set the time on each file to the time
in the repository whenever the file was created in the user's workspace
("cvs checkout") but brought up to date if the file already existed
("cvs update").

Sorry, I don't have a patch.  But this change was successful in that it
did what the users wanted.  The loophole is if someone rm'ed a file and
then did a "cvs update" to re-create the file:  The timestamp could be
potentially incorrect, but in practice this wasn't a problem.

>--- End of forwarded message from address@hidden

reply via email to

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