cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 124895 - Revision number in Status labels and performance
: Revision number in Status labels and performance
Status: RESOLVED FIXED
: versioncontrol
Mercurial
: 6.1
: Sun All
: P3 (vote)
: 6.5
Assigned To:
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-01-08 15:43 by
Modified: 2008-06-03 04:12 (History)
Issue Type: DEFECT
:


Attachments
Proposed patch (1.83 KB, text/plain)
2008-01-11 23:54, John Rice
Details
Proposed warning patch (3.94 KB, text/plain)
2008-01-16 17:44, John Rice
Details
main_81556_f3e5103db2a7-remove-revisionlabel-support.patch (6.44 KB, text/plain)
2008-05-29 13:15, John Rice
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-01-08 15:43:55
If revision number is specified in status labels the performance will be bad as
getting the revision number for each
file will require exec'ing a hg call.
------- Comment #1 From 2008-01-11 23:54:29 -------
Created an attachment (id=54983) [details]
Proposed patch
------- Comment #2 From 2008-01-11 23:56:33 -------
Ignore patch this was for bug 124887
------- Comment #3 From 2008-01-16 17:44:33 -------
Created an attachment (id=55161) [details]
Proposed warning patch
------- Comment #4 From 2008-01-16 17:49:04 -------
The patch does not solve the problem, but at least warns the user if they add
{revision} to the Mercurial Status Labels
in the Options panel that there may be a serious performance penalty when
viewing Mercurial controlled Projects and
suggests they use Show Annotations or Show History instead.

We need to see if there is some way to cache the revision information in the
FileStatusCache so we can reuse it and
avoid this performance penalty
------- Comment #5 From 2008-01-16 17:56:43 -------
IDE:-------------------------------------------------
IDE: [16/01/08 17:51] Committing started
Checking in options/MercurialPanel.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/options/MercurialPanel.java,v 
<--  MercurialPanel.java
new revision: 1.9; previous revision: 1.8
done
Checking in options/Bundle.properties;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/options/Bundle.properties,v 
<--  Bundle.properties
new revision: 1.9; previous revision: 1.8
done
Checking in MercurialAnnotator.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/MercurialAnnotator.java,v
 <--
 MercurialAnnotator.java
new revision: 1.20; previous revision: 1.19
done
IDE: [16/01/08 17:51] Committing finished
IDE: [16/01/08 17:51] Diffing finished
IDE: [16/01/08 17:51] Diffing finished
------- Comment #6 From 2008-02-25 10:41:07 -------
Note that currently HgCommand.getLastRevision in formatAnnotation in
MercurialAnnotator.java is called in AWT thread.
This should be fixed as part of this bug.
------- Comment #7 From 2008-05-29 13:04:18 -------
Mercurial revision applies to the repository, not to an individual file.
Therefore it makes little sense to support
revision labels on individual files.

Information as to which changesets a file changed in is available via Search
History.
------- Comment #8 From 2008-05-29 13:15:18 -------
Created an attachment (id=62118) [details]
main_81556_f3e5103db2a7-remove-revisionlabel-support.patch
------- Comment #9 From 2008-05-29 13:17:07 -------
Removed revision label support.

changeset:   81867:d8c7649375ba
tag:         tip
user:        jrice@netbeans.org
date:        Thu May 29 13:13:21 2008 +0200
summary:     #124895: Remove revision label support, not useful for mercurial
repos and performance hit
------- Comment #10 From 2008-06-03 04:12:52 -------
Integrated into 'main-golden', available in NB_Trunk_Production #234 build
Changeset: http://hg.netbeans.org/main/rev/d8c7649375ba
User: jrice@netbeans.org
Log: #124895: Remove revision label support, not useful for mercurial repos and
performance hit