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

Re: [Issue 1256] Ability to preserve last modification time (mtime) of files under version control

From: Philipp Marek <philipp.marek_at_emerion.com>
Date: Thu, 12 Nov 2009 08:50:28 +0100

Hello Edmund,

On Donnerstag, 12. November 2009, Edmund Wong wrote:
> Reading from one of the posts, I believe Philip Martin mentioned that
> it makes no sense to have 'svn add' put the mtime in the properties
> since it would be the job of the 'svn commit' to do that, no? That
> was my initial thinking until I cam across another thought. What
> happens if I 'svn add' a file but forget to commit it until a day
> later? Which mtime should be used?
My branch simply took the files' mtime on commit, and pushed that as
"svn:text-time" property string.

> Btw, is mtime stored as a string, or as an apr_time_t struct?
It's formatted like this:
        2004-09-23T05:29:00.000000Z
The sub-seconds require an OS (and filesystem) that support that, of course.

> Kristofer's patch treated it as a string.

Regards,

Phil

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2416910
Received on 2009-11-12 08:50:46 CET

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.