if (wcAccess.getAnchor().getProperties(entry.getName(), false).getPropertyValue(SVNProperty.EXECUTABLE) != null) { SVNFileUtil.setExecutable(wcAccess.getAnchor().getFile(entry.getName()), true); }
            public void handleLock(String path, SVNLock lock, SVNException error) throws SVNException {                SVNURL fullURL = rootURL.appendPath(path, false);                SVNDebugLog.logInfo("updating locked file with path: " + path);                SVNDebugLog.logInfo("updating locked file with url: " + fullURL);                LockInfo lockInfo = (LockInfo) entriesMap.get(fullURL);                SVNDebugLog.logInfo("lock info is: " + lockInfo);                SVNDebugLog.logInfo("lock info file: " + lockInfo.myFile);                SVNWCAccess wcAccess = createWCAccess(lockInfo.myFile);                if (error == null) {                    try {                        wcAccess.open(true, false);                        SVNEntry entry = wcAccess.getTargetEntry();                        entry.setLockToken(lock.getID());                        entry.setLockComment(lock.getComment());                        entry.setLockOwner(lock.getOwner());                        entry.setLockCreationDate(SVNTimeUtil.formatDate(lock.getCreationDate()));                        if (wcAccess.getAnchor().getProperties(entry.getName(), false).getPropertyValue(SVNProperty.NEEDS_LOCK) != null) {                            SVNFileUtil.setReadonly(wcAccess.getAnchor().getFile(entry.getName()), false);                        }                        wcAccess.getAnchor().getEntries().save(true);                        wcAccess.getAnchor().getEntries().close();                        handleEvent(SVNEventFactory.createLockEvent(wcAccess, wcAccess.getTargetName(), SVNEventAction.LOCKED, lock, null),                                ISVNEventHandler.UNKNOWN);                    } finally {                        wcAccess.close(true);                    }                } else {                    handleEvent(SVNEventFactory.createLockEvent(wcAccess, wcAccess.getTargetName(), SVNEventAction.LOCK_FAILED, lock, error.getMessage()),                             ISVNEventHandler.UNKNOWN);                }            }