[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: Jonathan Gilbert <o2w9gs702_at_sneakemail.com>
Date: 2007-03-13 02:23:11 CET

At 05:21 PM 3/12/2007 -0700, Karl Fogel wrote:
>"C. Michael Pilato" <cmpilato@collab.net> writes:
>> Ivan Zhakov wrote:
>>> I like this idea. Actually I've never understood why
>>> sleep_for_timestamps stuff is in libsvn_client.
>>
>> I could be wrong, but I think it lives in _client at the moment because we
>> wanted to sleep the minimum amount for a given high-level operation. The
>> worry was with a single person running 'svn' in a scripted situation, not
>> running any-ol-WC-library-consumer. And rather than sleep once per changed
>> file, for example, we much preferred to sleep once per update, for example.
>
>Exactly right.

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?

One convenient place to store the value could be the mtime attribute of the
entries file itself, if we're not already unintentionally putting it there :-)

Jonathan Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 13 02:21:49 2007

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.