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.
*/
public static boolean isIgnored(File file){
if (file == null) return true;
String name = file.getName();
String name = file.getPath();
File topFile = Mercurial.getInstance().getTopmostManagedParent(file);
// We assume that the toplevel directory should not be ignored.
for (Iterator i = patterns.iterator(); i.hasNext();) {
Pattern pattern = (Pattern) i.next();
if (pattern.matcher(name).matches()) {
if (pattern.matcher(name).find()) {
return true;
}