public long doSwitch(String path, String url, Revision revision, Revision pegRevision, int depth,
boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException {
SVNUpdateClient updater = getSVNUpdateClient();
try {
return updater.doSwitch(new File(path).getAbsoluteFile(), SVNURL.parseURIEncoded(url),
JavaHLObjectFactory.getSVNRevision(pegRevision),
JavaHLObjectFactory.getSVNRevision(revision), JavaHLObjectFactory.getSVNDepth(depth),
allowUnverObstructions, depthIsSticky);
} catch (SVNException e) {
throwException(e);