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

Re: svn completely looses file modifications due to FAT 2s time resolution (data loss!!?)

From: Ben Reser <breser_at_siaer.com>
Date: 2004-07-13 01:11:38 CEST

On Mon, Jul 12, 2004 at 11:30:51PM +0100, Jon Foster wrote:
> Ben Reser wrote:
>
> >b) Drop the sleep. Make the code that checks if a file is changed not
> >accept that a file is unchanged without comparing the files when the
> >timestamp of the file is within a certain range of the current time.
>
> How does this help? It detects & fixes the test script, which does
> something like this:
>
> 12:00:01.50: svn up foo ->timestamp of foo is 12:00:02
> 12:00:01.75: echo change > foo ->timestamp of foo is still 12:00:02
> 12:00:02.00: svn ci foo ->within 5 seconds, notices change
>
> But this (more realistic?) example fails:
>
> 12:00:01.50: svn up foo ->timestamp of foo is 12:00:02
> 12:00:01.75: echo change > foo ->timestamp of foo is still 12:00:02
> ... user goes away and does something else ...
> 12:30:00.00: svn ci foo ->outside 5 seconds, does not notice change

True. b) would fail in this case.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 13 02:07:48 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.