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

Re: Is there really no way to keep the file modification time intact?

From: Frans Knibbe <frans_at_geodan.nl>
Date: 2007-03-01 16:14:17 CET

Les Mikesell wrote:
> Frans Knibbe wrote:
>>
>>> Sounds like you should just be writing a wrapper script to go around
>>> "svn checkout", which itself calls svn checkout, then mucks with the
>>> modification dates of the checked-out files in whatever way you like.
>>>
>>>
>>> [1] I did write a script to implement a post-checkout hook, but it
>>> is a server-side script, of course; it does not do anything on the
>>> client:
>>> http://www.ryandesign.com/svnhookdispatcher
>
>> Thank you for your suggestions. I have done some testing and I think
>> I will choose the option to set the system time to the file
>> modification time before each commit. It is a simple solution and I
>> think it is sufficient for our purposes. All migrated files will have
>> recorded commit times equalling file modification times. All future
>> changes will just have a commit time, but this time will not differ
>> much from the file modification time if users don't wait too long
>> before comitting.
>
> That sounds absolutely horrible in any scenario that could possibly
> have multiple users or concurrent commits happening at once.
Yes, it sounded horrible to me too at first. But I am running the
migration to local Subversion repositories, one file revision at a time.
After the migration is finished, other users will be given access to the
repository. I have tested the concept manually and there were no
problems. I fear that if a try another solution I will get myself in
worse problems, especially because I am new to Subversion. The nice
thing is that this way, the dates as returned by the svn log command are
meaningful, i.e. reflecting true commit dates.

-- 
-------------------------------------
Frans Knibbe
Geodan S&R
President Kennedylaan 1
1079 MB Amsterdam (NL)
-------------------------------------
Tel: +31 (0)20 - 5711 347
Fax: +31 (0)20 - 5711 333
-------------------------------------
E-mail: frans.knibbe@geodan.nl
Website: www.geodan.nl
KvK-nummer: 33 247475
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 1 16:17:24 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.