Upgrades the repository located at
repositoryRoot
to the latest supported schema version. This method is identical to the
'svnadmin upgrade'
command.
This functionality is provided as a convenience for repository administrators who wish to make use of new Subversion functionality without having to undertake a potentially costly full repository dump and load operation. As such, the upgrade performs only the minimum amount of work needed to accomplish this while still maintaining the integrity of the repository. It does not guarantee the most optimized repository state as a dump and subsequent load would.
If the caller has {@link #setEventHandler(ISVNEventHandler) provided} an event handler, the handler will receive an {@link SVNAdminEvent} with the {@link SVNAdminEventAction#UPGRADE} action before the upgrade starts.
@param repositoryRoot repository root location
@throws SVNException
@since 1.2.0, SVN 1.5.0