buffer = openCDataTag("expires", ((SVNDate) lock.getExpirationDate()).format(), buffer);
}
buffer = closeXMLTag("lock", buffer);
}
if (info.getTreeConflict() != null) {
SVNTreeConflictDescription tc = info.getTreeConflict();
Map attributes = new SVNHashMap();
attributes.put("victim", tc.getPath().getName());
attributes.put("kind", tc.getNodeKind().toString());
attributes.put("operation", tc.getOperation().getName());
if (tc.getConflictAction() == SVNConflictAction.EDIT) {
attributes.put("action", "edit");
} else if (tc.getConflictAction() == SVNConflictAction.ADD) {
attributes.put("action", "add");
} else if (tc.getConflictAction() == SVNConflictAction.DELETE) {
attributes.put("action", "delete");
}
if (tc.getConflictReason() == SVNConflictReason.EDITED) {
attributes.put("reason", "edit");
} else if (tc.getConflictReason() == SVNConflictReason.OBSTRUCTED) {
attributes.put("reason", "obstruction");
} else if (tc.getConflictReason() == SVNConflictReason.DELETED) {
attributes.put("reason", "delete");
} else if (tc.getConflictReason() == SVNConflictReason.ADDED) {
attributes.put("reason", "add");
} else if (tc.getConflictReason() == SVNConflictReason.MISSING) {
attributes.put("reason", "missing");
} else if (tc.getConflictReason() == SVNConflictReason.UNVERSIONED) {
attributes.put("reason", "unversioned");
}
buffer = openXMLTag("tree-conflict", SVNXMLUtil.XML_STYLE_NORMAL, attributes, buffer);
SVNConflictVersion left = tc.getSourceLeftVersion();
if (left != null) {
buffer = printConflictVersionXML(left, "source-left", buffer);
}
SVNConflictVersion right = tc.getSourceLeftVersion();
if (right != null) {
buffer = printConflictVersionXML(right, "source-right", buffer);
}
buffer = closeXMLTag("tree-conflict", buffer);
}