} }
}*/
    private static boolean compareDirs(File dir1, File dir2, boolean isRoot) throws SVNException {        if (".svn".equals(dir1.getName())) {            return true;        }        if (!dir1.isDirectory()) {            SVNDebugLog.logInfo("'" + dir1 + "' is not a directory");            return false;        }        if (!dir2.isDirectory()) {            SVNDebugLog.logInfo("'" + dir2 + "' is not a directory");            return false;        }        SVNClientManager manager = SVNClientManager.newInstance();        SVNWCClient wcClient = manager.getWCClient();        if (!isRoot && !dir1.getName().equals(dir2.getName())) {            SVNDebugLog.logInfo("Unequal dir names: '" + dir1.getName() + "' vs. '" + dir2.getName() + "'");            return false;        }        Map props1 = new HashMap();        Map props2 = new HashMap();        ISVNPropertyHandler handler1 = new PropertyHandler(props1);        ISVNPropertyHandler handler2 = new PropertyHandler(props2);        wcClient.doGetProperty(dir1, null, SVNRevision.HEAD, SVNRevision.WORKING, false, handler1);        wcClient.doGetProperty(dir2, null, SVNRevision.HEAD, SVNRevision.WORKING, false, handler2);        if (!compareProps(props1, props2)) {            SVNDebugLog.logInfo("Unequal dir props: '" + dir1 + "' vs. '" + dir2 + "'");            return false;        }        File[] entries1 = dir1.listFiles();        File[] entries2 = dir2.listFiles();        if (entries1.length != entries2.length) {            SVNDebugLog.logInfo("Unequal dirs (different number of children): '" + dir1 + "' (found " + entries1.length + " children) vs. '" + dir2 + "' (found " + entries2.length + " children)");            return false;        }        for (int i = 0; i < entries1.length; i++) {            File entry = entries1[i];            if (".svn".equals(entry.getName())) {                continue;            }            File entryToCompareWith = null;            for (int j = 0; j < entries2.length; j++) {                File candidateEntry = entries2[j];                if (candidateEntry.getName().equals(entry.getName())) {                    entryToCompareWith = candidateEntry;                    break;                }            }            if (entryToCompareWith == null) {                SVNDebugLog.logInfo("Missing entry named '" + entry.getName() + "' in folder '" + dir2 + "'");                return false;            }            if (entry.isDirectory()) {                if (!compareDirs(entry, entryToCompareWith, false)) {                    return false;                }            } else {                if (!compareFiles(entry, entryToCompareWith)) {                    return false;                }            }        }        return true;    }