*/
public long doSwitch(File path, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNDepth depth,
boolean allowUnversionedObstructions, boolean depthIsSticky) throws SVNException {
SVNWCAccess wcAccess = createWCAccess();
try {
SVNAdminAreaInfo info = wcAccess.openAnchor(path, true, SVNWCAccess.INFINITE_DEPTH);
final SVNReporter reporter = new SVNReporter(info, path, true, false, depth, false, false, getDebugLog());
SVNAdminArea anchorArea = info.getAnchor();
SVNEntry entry = anchorArea.getVersionedEntry(anchorArea.getThisDirName(), false);
SVNURL sourceURL = entry.getSVNURL();
if (sourceURL == null) {