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 124412

Summary: HgUtils.getProject(context) is incorrect
Product: versioncontrol Reporter: Padraig Obriain <padraigob>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch

Description Padraig Obriain 2007-12-24 11:22:46 UTC
HgUtils.getProject(context) should return the project associated with a context.

It currently uses the nodes associated with the context and tries to find the project associated with a node.

This does not work for a file in a Java project in the Prohect view.

We should use FileOwnerQuery.getOwner(FileObject).
Comment 1 Padraig Obriain 2007-12-24 11:24:31 UTC
Created attachment 54482 [details]
proposed patch
Comment 2 Padraig Obriain 2008-01-08 15:16:33 UTC
IDE:-------------------------------------------------
IDE: [1/8/08 3:15 PM] Committing "HgUtils.java" started
Checking in HgUtils.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/util/HgUtils.java,v  <-- 
HgUtils.java
new revision: 1.27; previous revision: 1.26
done
IDE: [1/8/08 3:15 PM] Committing "HgUtils.java" finished