SVNTranslator.translate(dir, name, name, SVNFileUtil.getBasePath(dst), true, true);
SVNTranslator.translate(dir, name, SVNFileUtil.getBasePath(src), SVNFileUtil.getBasePath(dst), true, true);
    private void restoreFile(SVNDirectory dir, String name) throws SVNException {        SVNProperties props = dir.getProperties(name, false);        SVNEntry entry = dir.getEntries().getEntry(name);        String eolStyle = props.getPropertyValue(SVNProperty.EOL_STYLE);        String keywords = props.getPropertyValue(SVNProperty.KEYWORDS);        String url = entry.getURL();        String author = entry.getAuthor();        String date = entry.getCommittedDate();        long rev = entry.getCommittedRevision();        boolean special = props.getPropertyValue(SVNProperty.SPECIAL) != null;                Map keywordsMap = SVNTranslator.computeKeywords(keywords, url, author, date, rev);        File src = dir.getBaseFile(name, false);        File dst = dir.getFile(name, false);        SVNTranslator.translate(dir, name, name, SVNFileUtil.getBasePath(dst), true, true);        dir.markResolved(name, true, false);                boolean executable = props.getPropertyValue(SVNProperty.EXECUTABLE) != null;        boolean needsLock = entry.isNeedsLock();        if (executable) {            SVNFileUtil.setExecutable(dst, true);        }        if (needsLock) {            try {                SVNFileUtil.setReadonly(dst, entry.getLockToken() == null);            } catch (IOException e) {                SVNErrorManager.error(0, e);            }        }        long tstamp = dst.lastModified();        if (myWCAccess.getOptions().isUseCommitTimes() && !special) {            entry.setTextTime(entry.getCommittedDate());            tstamp = TimeUtil.parseDate(entry.getCommittedDate()).getTime();            dst.setLastModified(tstamp);        } else {            entry.setTextTime(TimeUtil.formatDate(new Date(tstamp)));        }        dir.getEntries().save(false);                myWCAccess.svnEvent(SVNEvent.createRestoredEvent(myWCAccess, dir, entry));    }