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.

View | Details | Raw Unified | Return to bug 124262
Collapse All | Expand All

(-)versioncontrol/mercurial/src/org/netbeans/modules/mercurial/util/HgUtils.java (-2 / +2 lines)
Lines 216-222 Link Here
216
     */
216
     */
217
    public static boolean isIgnored(File file){
217
    public static boolean isIgnored(File file){
218
        if (file == null) return true;
218
        if (file == null) return true;
219
        String name = file.getName();
219
        String name = file.getPath();
220
        File topFile = Mercurial.getInstance().getTopmostManagedParent(file);
220
        File topFile = Mercurial.getInstance().getTopmostManagedParent(file);
221
        
221
        
222
        // We assume that the toplevel directory should not be ignored.
222
        // We assume that the toplevel directory should not be ignored.
Lines 229-235 Link Here
229
229
230
        for (Iterator i = patterns.iterator(); i.hasNext();) {
230
        for (Iterator i = patterns.iterator(); i.hasNext();) {
231
            Pattern pattern = (Pattern) i.next();
231
            Pattern pattern = (Pattern) i.next();
232
            if (pattern.matcher(name).matches()) {
232
            if (pattern.matcher(name).find()) {
233
                return true;
233
                return true;
234
            }
234
            }
235
        }
235
        }

Return to bug 124262