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.
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).
Created attachment 54482 [details] proposed patch
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