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

Re: File date/time

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-10-27 00:40:51 CEST

On Oct 26, 2006, at 15:50, Brian Erickson wrote:

> I imported our entire source tree with the following command
> svn -m "Initial import" import . file://snidely/svn/pcs/trunk
> I then issued the following
> svn checkout file://snidely/svn/pcs/trunk .
> I then noticed that all of the files had today's date. Did it
> happen on the import or checkout?
> Is there any way to stop this horrible behavior?

Subversion does not preserve modification times in the repository. It
stores only the commit time. So this happened on import.

When you check out, the files in your working copy will be modified
"now". If you want instead to get the modification time to be the
time the files were committed, set "use-commit-times = yes" in your
client config file.

If you must preserve each file's modification time in the repository,
then you can consider compiling Subversion yourself from the
unofficial "text-time" branch:


Then you would need to start over, create a new repository, and
import again.

FWIW I would also find it useful if this were an option available in
the standard Subversion, particularly for importing historical
projects where the loss of such information can be significant. See
this feature request:


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 27 00:41:33 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.