public void displayPropDiff(String path, Map baseProps, Map diff, OutputStream result) throws SVNException { if (myBasePath != null) { path = getDisplayPath(new File(myBasePath, path)); }
public void displayPropDiff(String path, Map baseProps, Map diff, OutputStream result) throws SVNException { path = getDisplayPath(path);
    public void displayPropDiff(String path, Map baseProps, Map diff,            OutputStream result) throws SVNException {        if (myBasePath != null) {            path = getDisplayPath(new File(myBasePath, path));        }        ByteArrayOutputStream bos = new ByteArrayOutputStream();        try {            bos.write(EOL);            bos.write(("Property changes on: " + path).getBytes(getEncoding()));            bos.write(EOL);            bos.write(PROPERTIES_SEPARATOR);            bos.write(EOL);            for (Iterator changedPropNames = diff.keySet().iterator(); changedPropNames                    .hasNext();) {                String name = (String) changedPropNames.next();                String originalValue = baseProps != null ? (String) baseProps                        .get(name) : null;                String newValue = (String) diff.get(name);                bos.write(("Name: " + name).getBytes(getEncoding()));                bos.write(EOL);                if (originalValue != null) {                    bos.write("   - ".getBytes(getEncoding()));                    bos.write(originalValue.getBytes(getEncoding()));                    bos.write(EOL);                }                if (newValue != null) {                    bos.write("   + ".getBytes(getEncoding()));                    bos.write(newValue.getBytes(getEncoding()));                    bos.write(EOL);                }            }            bos.write(EOL);        } catch (IOException e) {            SVNErrorManager.error("svn: Failed to save diff data: " + e.getMessage());        } finally {            try {                bos.close();                bos.writeTo(result);                SVNDebugLog.log(bos.toString());            } catch (IOException e) {            }        }    }