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 - HgUtils.getProject(context) is incorrect
Summary: HgUtils.getProject(context) is incorrect
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
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
Exception Reporter:


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