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

Re: Subversion, date/time question on initial import or add

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-11-13 22:42:19 CET

On Nov 13, 2007, at 09:01, ANDREW.LUCAS@L-3Com.com wrote:

> Is there a way to keep the date/timestamp associated with files in the
> windows environment when initially setting up a new subversion
> repository?
> It seems to use the current date and time versus the date and time of
> the file?
> Could this just be our older version mix of the tools?
> (svnserve, subversion 1.4.2, wxWidgets 2.6.3, rapidsvn 0.9.4)

Subversion does not store files' modification/creation date/time. It
only stores the commit time of the revision as a whole. When you
check this out again later, two behaviors are possible. The default
is that the modification date/time of all files is set to "now". The
other option is that the date/time of all files is set to their
commit time; to get this behavior, set "use-commit-times yes" in the
[miscellany] section of your ~/.subversion/config (or wherever the
equivalent file is on Windows, if you're using Windows).

To get the behavior you desire, you would have to import each file as
a separate revision, in chronological order, and then change the
svn:date property of each revision to match that file's modification
date. This would be rather tedious. You could write a script to
automate this. Maybe someone has already written such a script.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 13 22:43:44 2007

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.