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

Re: Status information -- needs a better solution

From: Sven Probst <sven.probst_at_ilt.fraunhofer.de>
Date: 2006-02-02 22:50:36 CET

Stefan Küng schrieb:

> The problem with *every* status indication is that as soon as it's
> fetched and shown, it can already be outdated again. Even during the
> status fetching, another app can modify files. So while we crawl the
> working copy file by file, as soon as we did a file, another app can
> change that same file. Then when we show the "check for modifications"
> dialog, that file would show up as "normal" (i.e. not modified), while
> it actually got modified just before the dialog was shown.

You are right, the principle problem of parallel unsynchronised
processes ...

> Depending on the size of a working copy, fetching the status can take
> several seconds, so it's not that unlikely of something like this to
> happen.
> So, we would *always* have to show "unknown" or "don't know".

I disagree here. If a directory is completely checked and you didn't get
a file change notification for this directory since the beginning of the
check its state is known and can be displayed.

> About the file change notifications: the cache already uses those. As
> soon as it detects a change, it starts crawling that directory again.
> But since the folder overlays indicate the status recursively, it then
> also crawls all child dirs to update that recursive status.

( as long as it does this, it should display "unknown")

> So, for 'normal' sized working copies (I take the TSVN working copy as
> a reference here), the overlays won't be off more than 1-5 seconds.

I didn't imagine this process being so fast because I have been using
TSVN 1.26, which needs much longer. A few seconds ago I tried TSVN 1.31
- it's really much faster !
So maybe this discussion is a little bit accademic ... (and could be
stopped ;-) )

Thank you for your detailed answer !

Kind regards
Sven Probst.

# Dipl.-Ing. Sven Probst
# Fraunhofer Institut f. Lasertechnik
# Steinbachstr. 15, D-52074 Aachen, Germany.
# Tel   : + 49 (0) 241 8906 314
# Fax   : + 49 (0) 241 8906 121
# EMail : sven.probst@ilt.fraunhofer.de
# WWW   : <http://www.ilt.fraunhofer.de>
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Feb 2 22:50:46 2006

This is an archived mail posted to the TortoiseSVN Users mailing list.

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