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

Re: Subversion Problem - How to save file modify time?

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Tue, 15 Jul 2008 08:32:19 -0500

Anders J. Munch wrote:
> Les Mikesell wrote:
>> If you are on a unix-like filesystem, you just use a
>> different timestamp
>> for each purpose. mtime is for the last modification of the file
>> contents, ctime for inode changes like moves or ownership/permission
>> changes. Normally ctime can't be set by the user and can never be
>> earlier than mtime (because an update of mtime is an inode change that
>> triggers an update to ctime). Thus there is no doubt about what mtime
>> is supposed to mean, just a choice of which timestamp to observe for
>> your purpose.
>
> And if you copy a file from one file system to another, what then? I
> was under the impression from earlier discussion that Linux file
> managers would create new files with new mtimes on copying, at least
> in some circumstances?

Many (most?) unix-aware copying methods (tar, zip, rsync, gnu cp, etc.)
offer ways to preserve mtimes. I'm not sure what each GUI file manager
does but why use one limited or broken mechanism to excuse another?

-- 
  Les Mikesell
   lesmikesell_at_gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-15 18:40:38 CEST

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.