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

Re: File time stamps on initial import

From: Lorenz <lorenznl_at_yahoo.com>
Date: Wed, 12 Mar 2008 07:32:31 +0000

George Reeke wrote:
>[...]
>To my horror, the time stamps on all my files were updated to the
>time when I did the import. I realize it's not really important
>any more what those time stamps were, except this project has
>been going on for many years and I would like to be able to see
>when I last worked on a particular file.

so if I get you right, your only interested to to preserve the
pre-subversion timestamps?

In that case I would "ls * > tempfile" and "svn propset
LastModifiedTimestamp --revprop -r ImportRev --file tempfile repoURL"

You could also, as Graeme mentioned already, use a versioned property.
In that case a would add an empty directory to the repository first,
check it out over your import folder, 'svn add' all files, set the
custom property on all files and finally commit.

If you are only interested to preserve the original timestamps of the
imported files and not plan to update the properties on each commit, I
would then remove the properties again and commit again. Otherwise you
are stuck with the original value for ever. Might be irritating 8-)

-- 
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-12 08:33:06 CET

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.