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 129799

Summary: Fetching Revisions on Export is slow
Product: versioncontrol Reporter: John Rice <jrice>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: main_work_71702_bc8a9b0fbb1e-export-revsisons-options.patch
main_work_71703_493266d6e88a-revision-limits.patch part 1
main_work_71704_2ed7eae382f1-revision-limits.patch part 2

Description John Rice 2008-03-11 16:14:19 UTC
Fecthing revisions is very slow on large repositories. This seems to be a hg issue, its just as slow from the command line.

Currently we have a limit of 100 revisions to fetch. We could reduce this to 10 and add in  a few options "Next 20..."
"Next 50..." "All..." to the combo to optionally allow a user to fetch more revisions. This would speed up the common
use case, when you are just dealing with the last few revisions.
Comment 1 John Rice 2008-03-11 22:36:53 UTC
Changed how Export Diff works - now comes up and fetches 7 revisions by default (above 7 get big performance hit), but
gives users options to:
"Fetch up to 20 revisions..."
"Fetch up to 50 revisions..."
"Fetch up to All revisions..."

On my Sony dual core x86 1.8GHz with 2 Gig RAM, to get the revisions its taking against hg.netbeans.org/main:
5-7 revisions: 15 sec
8-20 revisions: 40 sec
25-50 revisions: 100 sec

Will do the same for the other Dialogs that fetch revisions: Backup, Strip, Revert and Update

changeset:   72792:e77829cdd2b7
tag:         tip
user:        jrice@netbeans.org
date:        Tue Mar 11 21:23:09 2008 +0000
summary:     #129799: Fetching Revisions for Export is slow on large repos - reduce number fetched and added options to
get more
Comment 2 John Rice 2008-03-11 22:41:50 UTC
Created attachment 58195 [details]
main_work_71702_bc8a9b0fbb1e-export-revsisons-options.patch
Comment 3 John Rice 2008-03-12 16:51:38 UTC
Added changes to limit revisions fetched in Update, Revert, Strip and Backout. Also came across issue when you have
multiple heads for these dialogs. As context was not being passed, the list of revs was following one branch only and
not listing all revs as it should. So changed all the dialogs including Export to pass in appropriate context so they do
the right thing.

changeset:   72884:59101cfe5108
user:        jrice@netbeans.org
date:        Wed Mar 12 12:15:29 2008 +0000
summary:     #129799: Fetching Revisions for Export is slow on large repos - adding similar support to Backout, Strip,
Revert and Update

changeset:   72885:baca7c59498c
user:        jrice@netbeans.org
date:        Wed Mar 12 15:03:10 2008 +0000
summary:     #129799: Fetching Revisions for Export is slow on large repos - adding similar support to Backout, Strip,
Revert and Update

Comment 4 John Rice 2008-03-12 16:52:39 UTC
Created attachment 58253 [details]
main_work_71703_493266d6e88a-revision-limits.patch part 1
Comment 5 John Rice 2008-03-12 16:53:19 UTC
Created attachment 58254 [details]
main_work_71704_2ed7eae382f1-revision-limits.patch part 2