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 198164 - Pull triggers full repository scan
Summary: Pull triggers full repository scan
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-28 07:22 UTC by Ondrej Vrabec
Modified: 2011-08-01 14:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2011-04-28 07:22:14 UTC
Open just a single netbeans project.
Make sure there are some changes to pull (either strip the tip revision or wait for someone to push some changes).
Call Mercurial -> Pull

Now instead of running 'hg status OPENED_PROJECT' th hg support invokes 'hg status FULL_REPO', which takes a long time. And what is worse, the repo folder is now considered a seen root so every ongoing action affecting the repository (or any external change to the repository) triggers the full scan as well.

There is a call to FileStatusCache.listFiles in PullAction.confirmWithLocalChanges with REPO_ROOT as the parameter which results in considering the REPO_ROOT as a top seen root. Mercurial.getSeenRoots should be called instead.

Product Version = NetBeans IDE Dev (Build 20110420-f78faf8adb58)
Operating System = Linux version 2.6.37.1-1.2-desktop running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02
Comment 1 Ondrej Vrabec 2011-04-28 07:58:53 UTC
fix: http://hg.netbeans.org/core-main/rev/366d1f94f59e
Comment 2 Quality Engineering 2011-04-29 04:43:11 UTC
Integrated into 'main-golden', will be available in build *201104290000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/366d1f94f59e
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #198164 - Pull triggers full repository scan
Comment 3 Stepan Zebra 2011-08-01 14:50:27 UTC
verified in release 701 build 201107282000