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

Re: [PROPOSAL] Move sleeping for timestamps to libsvn_wc

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2007-03-13 05:35:20 CET

On Mon, 2007-03-12 at 20:23 -0500, Jonathan Gilbert wrote:
> I'm coming to this discussion a bit late, but why not make the last step in
> every operation be to store the time(NULL) value in the .svn metadata
> subdirectory somewhere, and then the first step be to read it back in and
> do a 1-second delay if time(NULL) returns the same value that was
> previously written?

The case we're trying to prevent is:

  1. svn operation plunks data in working copy, records timestamp.
  2. non-svn operation modifies working copy file.
  3. svn st (or whatever) can't detect the modification because
timestamp didn't change. (Unless the size changed or some other
indication clues us in.)

We can't affect how step 2 works, so we can't make it read the .svn
metadata and do a 1-second delay if necessary.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 13 05:34:54 2007

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