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 124262 - HgUtils.isIgnored returns false for a file which mercurial ignores
Summary: HgUtils.isIgnored returns false for a file which mercurial ignores
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-19 12:27 UTC by Padraig Obriain
Modified: 2008-01-03 09:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (1.17 KB, patch)
2007-12-20 14:40 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-19 12:27:36 UTC
HgUtils.isIgnored returns false for a file which mercurial ignores.

The problem seems to be that isIgnored calls Matcher.matches() rather than Matcher,find().
Comment 1 Padraig Obriain 2007-12-20 14:39:33 UTC
In addition we are looking only at the last part of the file name instead of the complete path.
Comment 2 Padraig Obriain 2007-12-20 14:40:28 UTC
Created attachment 54414 [details]
proposed patch
Comment 3 Padraig Obriain 2007-12-20 14:45:38 UTC
IDE:-------------------------------------------------
IDE: [12/20/07 2:45 PM] Committing 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.26; previous revision: 1.25
done
IDE: [12/20/07 2:45 PM] Committing finished