SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_INVALID_SWITCH, "''{0}''\nis not in the same repository as\n''{1}''",
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_INVALID_SWITCH, "''{0}''\nis not the same repository as\n''{1}''",
    public SVNUpdateEditor(SVNWCAccess wcAccess, String switchURL, boolean recursive, boolean leaveConflicts) throws SVNException {        myWCAccess = wcAccess;        myIsRecursive = recursive;        myTarget = wcAccess.getTargetName();        mySwitchURL = switchURL;        myTargetRevision = -1;        myIsLeaveConflicts = leaveConflicts;        myDeltaProcessor = new SVNDeltaProcessor();        SVNEntry entry = wcAccess.getAnchor().getEntries().getEntry("", true);        myTargetURL = entry.getURL();        myRootURL = entry.getRepositoryRoot();        if (myTarget != null) {            myTargetURL = SVNPathUtil.append(myTargetURL, SVNEncodingUtil.uriEncode(myTarget));        }        if (mySwitchURL != null && entry != null && entry.getRepositoryRoot() != null) {            if (!mySwitchURL.startsWith(entry.getRepositoryRoot() + "/")) {                SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_INVALID_SWITCH, "''{0}''\nis not in the same repository as\n''{1}''",                        new Object[] {mySwitchURL, entry.getRepositoryRoot()});                SVNErrorManager.error(err);            }        }        wcAccess.getTarget().getEntries().close();        if ("".equals(myTarget)) {            myTarget = null;        }    }