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 132714 - Make "Show Annotations" work for files open with "View Revision"
Summary: Make "Show Annotations" work for files open with "View Revision"
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 06:36 UTC by matthies
Modified: 2008-09-02 14:37 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 matthies 2008-04-14 06:36:27 UTC
Do Versioning -> view Revision... on a version-controlled file, for example for the HEAD revision.
With that revision displayed in the editor, do Versioning -> Show Annotations.
The result is that annotations are shown on the working copy of the file (on which View Revision... was invoked), not 
on the checked-out revision on which Show Annotations was invoked.

Product Version: NetBeans IDE 6.1 RC1 (Build 200804100130)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\nm\.netbeans\6.1rc1
Comment 1 Maros Sandor 2008-09-02 12:45:17 UTC
It has never worked on files open via View Revision... In fact, such files have no CVS menu at all. In your case I guess
the action is performed on a previously selected file. You can verify that by selecting some other file, then selecting
the file open via View Revision and invoking Versioning/Show Annotations. However, having annotations on these files
does make sense.
Comment 2 matthies 2008-09-02 14:37:34 UTC
I see. Usually file-specific actions in the (main) menus are applied to the current file in the editor (as opposed to 
being applied to the active file in the "Files" treeview). For example if the current file in the editor is a "view 
revision" file, say "Foo.java @ 1.23" then the actions of the Edit menu are applied to that file, and not to the 
working copy "Foo.java". But the actions in the Versioning menu are being applied to "Foo.java" even though "Foo.java @ 
1.23" is the current file. IMO if the items are not applicable to "Foo.java @ 1.23" they should be grayed out. You say 
those files don't have a CVS menu, but the CVS menu is not disabled when such a file is the current editor file.