# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: D:\DATA\ONDRA\Programming\JAVA\NetBeansProjects\cdev # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: mercurial/src/org/netbeans/modules/mercurial/MercurialInterceptor.java --- mercurial/src/org/netbeans/modules/mercurial/MercurialInterceptor.java +++ mercurial/src/org/netbeans/modules/mercurial/MercurialInterceptor.java @@ -351,13 +351,8 @@ if (HgUtils.isPartOfMercurialMetadata(file)) return false; if (!isDirectory && !file.exists()) { File root = hg.getRepositoryRoot(file); - FileInformation info = null; - try { - Map statusMap = StatusCommand.create(root, Arrays.asList(file), false).setDetectConflicts(false).call(); - info = statusMap != null ? statusMap.get(file) : null; - } catch (HgException ex) { - Mercurial.LOG.log(Level.FINE, "beforeCreate(): getStatus failed for file: {0} {1}", new Object[]{file.getAbsolutePath(), ex.toString()}); // NOI18N - } + FileStatusCache cache = hg.getFileStatusCache(); + FileInformation info = cache.getCachedStatus(file); if (info != null && info.getStatus() == FileInformation.STATUS_VERSIONED_REMOVEDLOCALLY) { Mercurial.LOG.log(Level.FINE, "beforeCreate(): LocallyDeleted: {0}", file); // NOI18N if (root == null) return false;