entry.setPropTime(TimeUtil.formatDate(new Date(wcProps.getFile()
entry.setPropTime(SVNTimeUtil.formatDate(new Date(wcProps.getFile()
    public boolean revert(String name) throws SVNException {        boolean magicPropsChanged = false;        boolean wasReverted = false;        SVNEntry entry = getEntries().getEntry(name, true);        if (entry == null || entry.isHidden()) {            return wasReverted;        }        SVNProperties baseProps = getBaseProperties(name, false);        SVNProperties wcProps = getProperties(name, false);        if (hasPropModifications(name)) {            Map propDiff = baseProps.compareTo(wcProps);            if (propDiff != null && !propDiff.isEmpty()) {                magicPropsChanged = propDiff                        .containsKey(SVNProperty.EXECUTABLE)                        || propDiff.containsKey(SVNProperty.KEYWORDS)                        || propDiff.containsKey(SVNProperty.NEEDS_LOCK)                        || propDiff.containsKey(SVNProperty.EOL_STYLE)                        || propDiff.containsKey(SVNProperty.SPECIAL);            }            // copy base over wc            if (baseProps.getFile().isFile()) {                baseProps.copyTo(wcProps);                entry.setPropTime(TimeUtil.formatDate(new Date(wcProps                        .getFile().lastModified())));            } else {                wcProps.delete();                entry.setPropTime(null);            }            getEntries().save(false);            wasReverted = true;        } else if (entry.isScheduledForReplacement()) {            baseProps.copyTo(wcProps);            entry.setPropTime(TimeUtil.formatDate(new Date(wcProps.getFile()                    .lastModified())));            wasReverted = true;        }        if (entry.isFile()) {            boolean textModified = false;            if (!magicPropsChanged) {                textModified = hasTextModifications(name, false);            }            File file = getFile(entry.getName());            if (textModified || magicPropsChanged || !file.exists()) {                // copy base to wc and expand.                boolean special = wcProps.getPropertyValue(SVNProperty.SPECIAL) != null;                File src = getBaseFile(name, false);                File dst = getFile(name);                if (!src.exists()) {                    SVNErrorManager.error("svn: Error restoring text for '"                            + dst + "'");                }                SVNTranslator.translate(this, name, SVNFileUtil                        .getBasePath(src), SVNFileUtil.getBasePath(dst), true,                        true);                boolean executable = wcProps                        .getPropertyValue(SVNProperty.EXECUTABLE) != null;                boolean needsLock = wcProps                        .getPropertyValue(SVNProperty.NEEDS_LOCK) != null;                if (executable) {                    SVNFileUtil.setExecutable(dst, true);                }                if (needsLock) {                    SVNFileUtil.setReadonly(dst, entry.getLockToken() == null);                }                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)));                }                getEntries().save(false);                wasReverted |= true;            }            wasReverted |= markResolved(name, true, false);        }        return wasReverted;    }