if (SVNProperty.REVISION.equals(e.getKey()) && SVNProperty.KIND_DIR.equals(entry.get(SVNProperty.KIND))) {
if ((SVNProperty.REVISION.equals(e.getKey()) || SVNProperty.URL.equals(e.getKey())) && SVNProperty.KIND_DIR.equals(entry.get(SVNProperty.KIND))) {
    private static void saveEntry(Writer os, Map parent, Map entry) throws IOException {        os.write("<entry\n");        boolean first = true;        for(Iterator entries = entry.entrySet().iterator(); entries.hasNext();) {            Map.Entry e = (Map.Entry) entries.next();            if (e.getValue() == null) {                continue;            }            if (parent != null) {                if (SVNProperty.REVISION.equals(e.getKey()) && e.getValue().equals(parent.get(SVNProperty.REVISION))) {                    continue;                }                if (SVNProperty.REVISION.equals(e.getKey()) && SVNProperty.KIND_DIR.equals(entry.get(SVNProperty.KIND))) {                    // do not save revision for child directories                    continue;                }                if (SVNProperty.UUID.equals(e.getKey()) && e.getValue().equals(parent.get(SVNProperty.UUID))) {                    continue;                }                // do not save when url differs from expected                if (SVNProperty.URL.equals(e.getKey())) {                    String expected = PathUtil.append((String) parent.get(SVNProperty.URL), (String) entry.get(SVNProperty.NAME));                    if (e.getValue().equals(expected)) {                        continue;                    }                }            }            if (!first) {                os.write('\n');            }            first = false;             os.write("   ");            os.write(e.getKey().toString().substring(FSEntry.ENTRY_PREFIX.length()));            os.write("=\"");            String value = e.getValue().toString();            value = value.replaceAll("<", "&lt;");            value = value.replaceAll(">", "&gt;");            value = value.replaceAll("\"", "&quot;");            value = value.replaceAll("\t", "&#09;");            os.write(value);            os.write("\"");        }        os.write("/>\n");    }