if (url1.getUserInfo().equals(url2.getUserInfo())) {
if (!url1.getUserInfo().equals(url2.getUserInfo())) {
    public static SVNURL getCommonURLAncestor(SVNURL url1, SVNURL url2) {        // skip protocol and host, if they are different -> return null;        if (url1 == null || url2 == null) {            return null;        }        if (!url1.getProtocol().equals(url2.getProtocol()) || !url1.getHost().equals(url2.getHost()) ||                 url1.getPort() != url2.getPort()) {            return null;        }        if (url1.getUserInfo() != null) {            if (url1.getUserInfo().equals(url2.getUserInfo())) {                return null;            }        } else {            if (url1.getUserInfo() != url2.getUserInfo()) {                return null;            }        }        String path1 = url1.getPath();        String path2 = url2.getPath();        String commonPath = SVNPathUtil.getCommonPathAncestor(path1, path2);        try {            return url1.setPath(commonPath, false);        } catch (SVNException e) {        }        return null;    }