parent.save();
    public void revert(String path, boolean recursive) throws SVNException {        try {            ISVNEntry entry = locateEntry(path);            if (entry == null || (entry.isDirectory() && entry.isMissing())) {                if (entry != null) {                    ISVNEntry parent = locateParentEntry(path);                    if (parent != null && parent.isDirectory()) {                        boolean reverted = parent.asDirectory().revert(entry.getName());                        fireEntryModified(entry, reverted ? SVNStatus.REVERTED : SVNStatus.NOT_REVERTED, false);                        return;                    }                }                return;            }            ISVNDirectoryEntry parent = null;            parent = (ISVNDirectoryEntry) locateParentEntry(path);            doMarkResolved(entry, recursive);            doRevert(parent, entry, recursive);            if (parent == null && entry == getRoot()) {                entry.asDirectory().revert(null);            }            if (parent != null) {                entry = parent;            }            entry.save();            entry.dispose();            sleepForTimestamp();        } finally {            getRoot().dispose();        }    }