return "(working copy)";
}
private boolean defineEncoding(SVNProperties properties, SVNProperties diff) {
if (myGenerator instanceof DefaultSVNDiffGenerator) {
DefaultSVNDiffGenerator defaultGenerator = (DefaultSVNDiffGenerator) myGenerator;
if (!defaultGenerator.hasEncoding()) {
boolean hasOriginCharset = properties == null ? false : properties.containsName(SVNProperty.CHARSET);
String originCharset = properties == null ? null : properties.getStringValue(SVNProperty.CHARSET);
boolean hasChangedCharset = diff == null ? false : diff.containsName(SVNProperty.CHARSET);
String changedCharset = diff == null ? null : diff.getStringValue(SVNProperty.CHARSET);
if (hasOriginCharset || (hasChangedCharset && changedCharset != null)) {
if (originCharset != null) {
defaultGenerator.setEncoding("UTF-8");
return false;
}
if (changedCharset != null) {
defaultGenerator.setEncoding("UTF-8");
return false;
}
}
}
}