DebugLog.log("deleting : " + path);
    public void deleteEntry(String path, long revision) throws SVNException {        path = PathUtil.removeLeadingSlash(path);        path = PathUtil.removeTrailingSlash(path);        String name = PathUtil.tail(path);        SVNEntry entry = myCurrentDirectory.getDirectory().getEntries()                .getEntry(name, true);        DebugLog.log("deleting : " + path);        if (entry == null) {            return;        }        SVNLog log = myCurrentDirectory.getLog(true);        Map attributes = new HashMap();        attributes.put(SVNLog.NAME_ATTR, name);        log.addCommand(SVNLog.DELETE_ENTRY, attributes, false);        SVNNodeKind kind = entry.getKind();        boolean isDeleted = entry.isDeleted();        if (path.equals(myTarget)) {            attributes.put(SVNLog.NAME_ATTR, name);            attributes.put(SVNProperty.shortPropertyName(SVNProperty.KIND),                    kind == SVNNodeKind.DIR ? SVNProperty.KIND_DIR                            : SVNProperty.KIND_FILE);            attributes.put(SVNProperty.shortPropertyName(SVNProperty.REVISION),                    Long.toString(myTargetRevision));            attributes.put(SVNProperty.shortPropertyName(SVNProperty.DELETED),                    Boolean.TRUE.toString());            log.addCommand(SVNLog.MODIFY_ENTRY, attributes, false);            myIsTargetDeleted = true;        }        if (mySwitchURL != null && kind == SVNNodeKind.DIR) {            myCurrentDirectory.getDirectory().destroy(name, true);        }        log.save();        myCurrentDirectory.runLogs();        if (isDeleted) {            // entry was deleted, but it was already deleted, no need to make a            // notification.            return;        }        myWCAccess.handleEvent(SVNEventFactory.createUpdateDeleteEvent(                myWCAccess, myCurrentDirectory.getDirectory(), name));    }