[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn status: does not notice changed file if timestamp of "new" file is older

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-11-13 02:03:08 CET

Branko ÄŒibej <brane@xbc.nu> writes:

> >I don't think Subversion needs to know the ctime of a working copy
> >file. The mtime is what is needed to track text changes, and property
> >changes are tracked via the the mtime of the property file.
> >
> It's a common misconception that "ctime" means "creation time". It
> doesn't. the ctime is the time of the last _change_ to the _inode_,
> and as such doesn't bear any relation to Windows creation time. So
> yes, it's totally wrong to rely on ctime, we should be looking only at
> mtime.

The author of the code knew that, the svn_io.h documentation states
explictly that svn_io_file_affected_time will return the later of
mtime and ctime to enable permissions to be tracked.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 13 02:04:00 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.