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

Summary: HgUtils.isIgnored returns false for a file which mercurial ignores
Product: versioncontrol Reporter: Padraig Obriain <padraigob>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: proposed patch

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