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

Re: Tsvn update does not always fetch HEAD after commit

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 04 Mar 2015 19:20:26 +0100

On 04.03.2015 16:56, Oddvar Kloster wrote:
> Hi,
>
> I sometimes see the following:
> * Working copy is at HEAD of trunk, e.g. r100, with changes
> * Commit r101
> * Run SVN Update from the explorer context menu
> -> Working copy is updated to r100
> * Open log dialog. Shows all revisions, including r101, with r100 in bold
> * Run Update item to revision r101 in log dialog context menu
> -> Working copy is updated to r101
> * Again, run SVN Update from the explorer context menu
> -> Working copy is updated to r100
>
> This situation can persist for perhaps a minute after the commit was made. After that, SVN Update correctly updates to r101.
>
> Platform: Windows 7, TortoiseSVN 1.8.10, Build 26129 - 64 Bit
> The repository is a local mirror updated with svnsync, with writethrough to the master on commit. I'm assuming that the problem might be related to caching in the Apache server.
> However, running svn update using the command line client correctly updates to r101 in this situation. I can switch back and forth between r100 and r101 many times by updating alternately using the command line and tsvn.

The TSVN update command first fetches the HEAD revision before running
the actual update to ensure that if there are multiple update targets,
all targets are updated to the same revision (just in case that during
the update, someone else makes a commit).

And since the log cache also caches the HEAD revision, that's what
you're seeing here: the HEAD revision of the log cache is used.

You can configure the cache time of the HEAD revision in the settings
dialog->log caching->timeout in seconds before updating the HEAD revision

by default, that value is set to zero.

I guess you have a different value there.

I'll change it so that for the update command, the log cache HEAD isn't
used but the actual HEAD.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3102873
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-03-04 19:20:47 CET

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.