bug-make
[Top][All Lists]
Advanced

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

Re: Using hash instead of timestamps to check for changes.


From: Eric Melski
Subject: Re: Using hash instead of timestamps to check for changes.
Date: Sat, 11 Apr 2015 18:19:44 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

On 04/11/2015 08:38 AM, Enrico Weigelt, metux IT consult wrote:
On 07.04.2015 00:17, Eric Melski wrote:

Hi,

This problem is relatively common when using an SCM system that
preserves *checkin* time on files rather than *checkout* time.

I'd consider that a misbehavious of the SCM (IMHO, that's the reason
why Git does not track the mtime). From the filesystem perspective,
the mtime represents the time when the actual file was changed in the
filesystem. So, resetting the mtime from some SCM repo actually is
tricking the filesystem - pretty obvious that the mtime then isn't
reliable anymore.

It doesn't necessarily require "resetting" or "manipulating" the mtime at all. ClearCase has its own filesystem, MVFS, which simply behaves the way I described. In any case, it's not an utterly irrational position to consider the last modification time of a file tracked by the version control system to be the time that a new revision of the file was created. That *is* the last modification time, after all.

However, this is not the place for this type of philosophical debate. The question at hand is whether or not make would benefit from a non-timestamp-based notion of "up-to-dateness", and the answer seems to be clearly yes, for this and other reasons mentioned elsewhere in this thread.

Regards,

Eric Melski
Chief Architect
Electric Cloud, Inc.
http://blog.melski.net/




reply via email to

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