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

Re: svn import/commit doesn't preserve file timestamp

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-11 10:37:43 CEST

On May 11, 2007, at 00:00, Nathan Bates wrote:

> We have a very strong need for a file's timestamp
> to be preserved in svn's repository.
>
> For example, we have old src files and design docs,
> but when they were imported, the files
> received the current time, which caused
> us to think they were updated by a developer.
>
> We had to stay with CVS because of this deficiency.

You are correct. Subversion does not preserve timestamps on import or
commit. The Subversion developers are aware of this and I don't
believe it's a high priority for them to offer the ability to
preserve this information, much as I would also like for them to do
so. There are just several other features which are important to more
people, and developer resources are limited.

I believe there is a script floating around that provides a
workaround. I think it imports each file as a separate revision and
then sets that revision's svn:date property? I'm not sure because
I've never used it, and I can't remember what it's called, but I'm
sure someone else will remember it and chime in.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 11 10:38:10 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.