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

Re: Enhancement for Log-Caching: Offline mode

From: <Stefan.Fuhrmann_at_etas.de>
Date: 2007-10-29 00:09:00 CET

Tobias Schäfer <tobiasschaefer@gmx.de> wrote on 28.10.2007 19:21:21:

> Hi devs,
>
> The log caching available in TortoiseSVN 1.5.0-dev tremendously improves
the
> performance of the log dialog and the revision graph. I would like to
see a
> further use of the log cache: offline mode for the log dialog and the
> revision graph.
>
> The logic could be something like this:
>
> If request for HEAD is successfull Then
> continue as before
> Else
> If log cache is enabled Then
> Show message box "A connection to the repository is
currently
> not be possible. Locally cached data will be shown. Note: this may be
> outdated."
> Show cached data
> Else
> Show message box "A connection to the repository is
> currently not be possible. Locally cached data is not available because
log
> caching is not enabled. See Settings->General->Dialogs1->Cache Log
> messages"
> End If
> End If

Yes, that is possible. There is already a CRepositoryInfo class that
caches certain repository meta-info (URL, UUID, HEAD). Thus, in some
cases, no network activity is needed at all.

Also, there are only two log query classes that must react on SVN errors.
And, finally, log dialog as well as revision graph can cope with arbitrary
sub-sets of the log info.

> Instead of showing a message box, it would also be possible to show a
hint
> in the appropriate dialog, similar to the externals warning in the
commit
> dialog.
>
> If this is implemented all actions which require online access, should
be
> disabled in offline mode.
>
> Stefan^2, is this possible?

As soon as the switch to svn_client_log4() is complete,
I will start working on it.

-- Stefan^2.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Oct 29 00:09:08 2007

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.