if (killMe) {  dir.destroy("", true);  File dirFile = dir.getRoot(); if (SVNWCUtil.isWorkingCopyRoot(dirFile, true)) { return; } String parentPath = "".equals(dir.getPath()) ? null : PathUtil.removeTail(dir.getPath()); if (PathUtil.isEmpty(parentPath)) { parentPath = ""; } SVNDirectory parentDir = dir.getWCAccess().getDirectory(parentPath); SVNWCAccess parentAccess = null; if (parentDir == null) { parentDir = new SVNDirectory(null, "", dirFile); parentAccess = new SVNWCAccess(parentDir, parentDir, ""); parentAccess.open(true, false); } String nameInParent = dirFile.getName();  SVNEntry parentEntry = parentDir.getEntries().getEntry("", false); if (parentEntry != null && parentEntry.getRevision() <= dirRevision) {  SVNEntry entryInParent = parentDir.getEntries().addEntry(nameInParent); entryInParent.setDeleted(true); entryInParent.setKind(SVNNodeKind.DIR); entryInParent.setRevision(dirRevision); parentDir.getEntries().save(false); } if (parentAccess != null) { parentAccess.close(true); } }
    public void logCompleted(SVNDirectory dir) throws SVNException {        if (myIsEntriesChanged) {            dir.getEntries().save(true);        } else {            dir.getEntries().close();        }        myIsEntriesChanged = false;    }