> On Fri, 15 Jun 2012 14:48:54 +0100, Clare Macrae wrote:
> > When a TortoiseHg "Refresh status..." starts, in a working directory
> > of our main repo, it takes several minutes to complete [*]. This is
> > very disruptive to workflow, so I would like to understand what could
> > trigger TortoiseHg to refresh its status.
> 
> What kind of "refresh" message are you talking about?

The TortoiseHg UI displays a progress widget at bottom left of the screen, with 
exactly the words "Refresh status..." in it. I don't know how else to describe 
it.

>From a quick search for Refresh in the source code, I'd say it might be a 
>result of this line:

    self.progress.emit(*cmdui.startProgress(_('Refresh'), _('status')))

https://bitbucket.org/tortoisehg/thg/src/1018ecb003cf/tortoisehg/hgqt/status.py#cl-256

This is in function refreshWctx - what is a Wctx?

> If it is a start-up "Loading repository" dialog, it can be avoided by
> disabling "Show Subrepos on Registory" option from "View" -> "Repogitory
> Registory Options" menu.
> 
> https://bitbucket.org/tortoisehg/thg/issue/940/

Thanks - I checked, and all repos in my registry definitely exist...

> Or if your repository is located on very slow network drive and most
> operations take a long time, try to disable file monitoring:
> 
> https://bitbucket.org/tortoisehg/thg/issue/889/#comment-993231

It's local...

> > So, is there any list or documentation anywhere that says what
> > triggers "Refresh status..." please?
> 
> We have few options to tune up refresh timing or target.
> 
> > [*] in fact, 18 minutes and still counting, on a very fast PC...
> 
> Huh? I've never experienced such latency even on a slow laptop PC and a
> network drive.

That's useful to know. On the other hand, we've seen it on several very fast 
machines. (It's one repo of 93,000 changesets with one sub-repo of 6,900 
changesets)

I was going to tell you that we definitely had turned "eol" off... But this 
turned out not always be the case - for circumstances I just described in 
"TortoiseHg not always honouring eol settings" 

http://sourceforge.net/mailarchive/forum.php?thread_name=472620FF2D2FBB4BB62FD1285C58A04FAA83049C72%40mail01.ccdc.cam.ac.uk&forum_name=tortoisehg-discuss

However, I'd still like to understand what causes "Refresh status..." to be 
displayed, for best performance...

Clare


LEGAL NOTICE
Unless expressly stated otherwise, information contained in this
message is confidential. If this message is not intended for you,
please inform [email protected] and delete the message.
The Cambridge Crystallographic Data Centre is a company Limited
by Guarantee and a Registered Charity.
Registered in England No. 2155347 Registered Charity No. 800579
Registered office 12 Union Road, Cambridge CB2 1EZ.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to