On Fri, 15 Jun 2012 19:23:31 +0100, Clare Macrae wrote:
> > 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?

It reloads workingctx, i.e., scans all files under working directory.
So yes, it's a kind of expensive operation, though I can't tell why
it takes over 18 minutes.

TortoiseHg kicks this function when running an action to modify working copy
or opening commit tab. You can disable the latter case by setting
"Commit" -> "Monitor working directory chnages" to "auto".

FWIW, how long does it take to complete "hg status" command?
and how many files does the repository have?

Regards,

[...]

> > > [*] 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...

------------------------------------------------------------------------------
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