thanks Anthony,

I understand the behavior of fossil.
cwfs is out of the rule.

I said:
  standing on general rule of unix and plan9, 
  mtime of directory should be the time that the contents are modified.
but this is not true in rigorous speaking.

Kenji Arisawa

On 2013/02/25, at 19:34, Anthony Martin <[email protected]> wrote:

> [email protected] once said:
>> i'm not sure. if you touch an existing file, then it makes sense
>> that the files mtime gets updated, not the whole directory.
>> 
>> wstat() and write() on a file only update the files mtime, not
>> the parent directory.
>> 
>> however creating a new file or deleting a file from a directory
>> does change the directories mtime. (the dump change makes it
>> consistent with that).
> 
> From stat(5):
> 
>    For a plain file, mtime is the time of the most recent
>    create, open with truncation, or write; for a directory
>    it is the time of the most recent remove, create, or
>    wstat of a file in the directory.
> 
> Cheers,
>  Anthony
> 


Reply via email to