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 196312 - Excessive labels on project nodes
Summary: Excessive labels on project nodes
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on: 196389
Blocks:
  Show dependency tree
 
Reported: 2011-03-04 16:55 UTC by Jesse Glick
Modified: 2011-03-08 05:49 UTC (History)
1 user (show)

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 Jesse Glick 2011-03-04 16:55:10 UTC
I checked out https://github.com/apache/maven-3.git in tag maven-3.0.3. When I open the component modules in NB, I see e.g.

Maven Core [(no branch) 05e19b6bc21ea11b998e2d6baee2fecbe6bddc24]

which takes up most of the room in the Projects window and is very distracting. There is no apparent option in Tools > Options > Miscellaneous > Versioning > Git to suppress this - no "Status Label" field like for Mercurial.

Even the default is poor:

1. If there is no branch specified, just don't print anything. Displaying "(no branch)" is not very useful.

2. Since I have checked out a tag, I want to see that, not the commit ID.

3. The full-length commit ID takes up a lot of room. Anyway what am I supposed to do with it? I cannot copy and paste it. You could display just the first six digits (say) if you wanted something usually unique and easy to type.
Comment 1 Ondrej Vrabec 2011-03-07 09:16:54 UTC
fix: http://hg.netbeans.org/core-main/rev/8ba1be496e88
Comment 2 Ondrej Vrabec 2011-03-07 09:20:21 UTC
> Even the default is poor:
> 1. If there is no branch specified, just don't print anything. Displaying "(no branch)" is not very useful.
OK, removed
> 2. Since I have checked out a tag, I want to see that, not the commit ID.
When bug #196389 is implemented
> 3. The full-length commit ID takes up a lot of room. Anyway what am I supposed to do with it? I cannot copy and paste it. You could display just the first six digits (say) if you wanted something usually unique and easy to type.
The ID is shortened now
Comment 3 Jesse Glick 2011-03-07 14:52:26 UTC
Will there be a customizable status label option later?
Comment 4 Tomas Stupka 2011-03-07 15:10:29 UTC
(In reply to comment #3)
> Will there be a customizable status label option later?
i would prefer to toggle the branch/tag labels via menu > view > show versioning labels
Comment 5 Jesse Glick 2011-03-07 15:27:17 UTC
(In reply to comment #4)
> toggle the branch/tag labels via menu > view > show versioning labels

Sounds fine. I have this option unchecked. (I guess that is the default, since I never noticed it before?)
Comment 6 Ondrej Vrabec 2011-03-07 15:36:58 UTC
(In reply to comment #3)
> Will there be a customizable status label option later?
We do not intend to have parametrized label right now, but maybe in future when we have more items to display (currently only branch or commit id)
I thought this may be fine for now:
1) When you are on a branch, display the branch name
2) When not on a branch but a tag is checked out, display the tag name
3) When neither 1) or 2) display the commit id

I don't know if customizing the label is meaningful or required by someone, i thought the previous logic is sufficient. If you have a different view on that, please comment.

If you just want to disable the label completely, use the item in the main menu as tomas suggested. There was a bug (the label was always displayed), i fixed that in http://hg.netbeans.org/core-main/rev/c2a63ca53f6a
Comment 7 Quality Engineering 2011-03-08 05:49:10 UTC
Integrated into 'main-golden', will be available in build *201103080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8ba1be496e88
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #196312 - Excessive labels on project nodes