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

Re: Confusing Cache settings

From: <Stefan.Fuhrmann_at_etas.com>
Date: Fri, 19 Sep 2008 13:28:35 +0200

Lübbe Onken | RA Consulting <l.onken_at_rac.de> wrote on 09/19/2008 11:12:31

> Hi Folks (especially our cache guru Stefan^2),
> Two rows in the log cache settings are confusing me.
> "multiple URLs (eg https://my.server.com/svn/Project1)" and
> I have several working copies which are checked out from
https://my.server.com/svn/ Project2 lives
> on my C: drive while all other WCs (10-12) live in D:\Projects.
> A few questions:
> 1) Why are there two rows in the settings dialog? The server URL is the
same for all projects and
> all projects have different repository UUIDs.

There is one line per log cache, hence per UUID.
The repository cached in the first line has been
available through different URLs.

Please note that https://my.server.com/svn/Project2
and https://my.server.com/svn/Project1 are two
different repositories on the same server - at least
according to what the screen shot says.

> 2) If I have a problem with the log cache, it's Project1, the one which
is mentioned under
> "multiple URLs". Normally there are missing log messages, e.g. the
repository is in r50 but the
> log shows only messages until r30. This happened the last time with a
nightly build from last
> week, but I cannot say for sure that the log cache wasn't corrupted by
an earlier version of TortoiseSVN.

URLs will be compared strictly, i.e. the following
changes result in those "multiple URLs":

* HTTP -> HTTPS etc.
* server / repository rename
* copied repository

A workaround is to manually delete URL -> UUID mapping
%APP_DATA%\TortoiseSVN\logcache\repositories.dat .
It will be re-populated automatically without losing
the actual caches.

> 3) I have installed the nightly build 13976 (yesterday) and cleared all
log cache entries referring to
> https://my.server.com/, but still the cache shows these two entries in
its settings. Is it
> possible that the log cache also distinguishes by WC location? If yes
that wouldn't make sense to me.

Maybe, there is a bug - I fixed something similar the
before 1.5.0 release: If you select the first line and
click on "Delete", this line should be removed from
the list even if there were multiple URLs mapping to it.

As for the general "is this cache valid" problem, I
have some ideas how to detect the usage of the same UUID
for different repositories. If the heuristics detect an
inconsistency, the cache would be cleared.

Furthermore, it should also be possible to optionally
support cache selection by URL only. The combination of
both extensions should fix most of the caching woes we
keep seeing on the list.

-- Stefan^2.

To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-09-19 13:28:55 CEST

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

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