Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 124412 - HgUtils.getProject(context) is incorrect
HgUtils.getProject(context) is incorrect
Product: versioncontrol
Classification: Unclassified
Component: Mercurial
Sun All
: P3 (vote)
: 6.x
Assigned To: issues@versioncontrol
Depends on:
  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

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: [1/8/08 3:15 PM] Committing "" started
Checking in;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/util/,v  <--
new revision: 1.27; previous revision: 1.26
IDE: [1/8/08 3:15 PM] Committing "" 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