Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 124412 - HgUtils.getProject(context) is incorrect
HgUtils.getProject(context) is incorrect
Status: RESOLVED FIXED
Product: versioncontrol
Classification: Unclassified
Component: Mercurial
6.x
Sun All
: P3 (vote)
: 6.x
Assigned To: issues@versioncontrol
issues@versioncontrol
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-24 11:22 UTC by Padraig Obriain
Modified: 2008-01-08 15:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments
proposed patch (2.07 KB, patch)
2007-12-24 11:24 UTC, Padraig Obriain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo