This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 176031 - initial hg status scan only for visible folders
Summary: initial hg status scan only for visible folders
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks: 180604
  Show dependency tree
 
Reported: 2009-11-05 08:14 UTC by Ondrej Vrabec
Modified: 2010-02-11 04:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2009-11-05 08:14:39 UTC
I think that the initial hg status scan on the whole clone, as it is invoked in 6.8, is a bit inefficient. In some cases
it may take too much time and too many machine resources. We should find a way how to make the initial scan faster.

Probably we could run the scan only for opened projects (well, in fact for those files/folders for which an annotation
request comes). It would probably mean to hold a cache for already scanned repository folders and run the scan
on-demand. The question is, would this on-demand scan be really faster? Because it would probably mean that more hg
status commands will be run throughout the session.
And secondly, how would we solve the issue with Favorites view? If you have a hg repository mounted in Favorites, than
when you open the view, an annotation request comes for the repository root and the scan would be run for the whole root
(which means we are again at the beginning). See issue 175662
Comment 1 Ondrej Vrabec 2009-12-10 02:26:34 UTC
fix: http://hg.netbeans.org/cdev/rev/6b776afed480
Comment 2 Quality Engineering 2009-12-11 02:29:34 UTC
Integrated into 'main-golden', will be available in build *200912110200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6b776afed480
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #176031 - initial hg status scan only for visible folders
initial full status scan executed only for visible folders