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

Re: mtime fixup

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-01-23 12:01:01 CET

On Jan 23, 2006, at 02:13, Karl Berry wrote:

> In doing the initial population of a repository, somehow the mtime of
> the (many) files I've committed has ended up being the time of the
> checkin, instead of the mtime on the original file (a lot older). I
> don't see that behavior when I do a simple test now, so I assume I
> screwed up somehow.

The repository does not store mtimes at all. It only stores the
commit time.

> Anyway, given this situation, is it possible to reset the mtime on
> a file
> in the repository? I see a lot of messages about what seem to be
> related topics on the lists, but couldn't find an actual answer.
> (Or in
> the documentation.)

You can change the commit time after the fact, if you install a pre-
revprop-change hook allowing such changes. Simply set the svn:date
property of the revision. Note that the date applies to the entire
revision, not to individual files. If you want to be able to set the
date of individual files, you must commit them in individual revisions.

Another option: There is the unofficial meta-data-versioning branch
of Subversion which tracks file mtimes among other things, if you're
interested in putting that together and building it.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 23 12:02:53 2006

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

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