Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 124262 - HgUtils.isIgnored returns false for a file which mercurial ignores
HgUtils.isIgnored returns false for a file which mercurial ignores
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-19 12:27 UTC by Padraig Obriain
Modified: 2008-01-03 09:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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


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