myCurrentAuthor = fileRevision.getProperties().get("svn:author").toString(); myCurrentDate = TimeUtil.parseDate(fileRevision.getProperties().get("svn:date").toString());
Map props = fileRevision.getProperties(); if (props != null && props.get("svn:author") != null) { myCurrentAuthor = props.get("svn:author").toString(); } else { myCurrentAuthor = null; } if (props != null && props.get("svn:author") != null) { myCurrentDate = TimeUtil.parseDate(fileRevision.getProperties().get("svn:date").toString()); } else { myCurrentDate = null; }
    public void handleFileRevision(SVNFileRevision fileRevision) throws SVNException {        Map propDiff = fileRevision.getPropertiesDelta();        String newMimeType = (String) (propDiff != null ? propDiff.get(SVNProperty.MIME_TYPE) : null);        DebugLog.log("mime:type at revision: " + fileRevision.getRevision() + " = " + newMimeType);        if (SVNWCUtil.isBinaryMimetype(newMimeType)) {            SVNErrorManager.error("svn: Cannot calculate blame information for binary file '" + myPath + "'");        }        myCurrentDiffWindows = null;        myCurrentRevision = fileRevision.getRevision();        myCurrentAuthor = fileRevision.getProperties().get("svn:author").toString();        myCurrentDate = TimeUtil.parseDate(fileRevision.getProperties().get("svn:date").toString());        if (myCurrentFile != null) {            myCurrentFile.delete();        }        myCurrentFile = null;        if (myPreviousFile == null) {            // create previous file.            myPreviousFile = SVNFileUtil.createUniqueFile(myTmpDirectory, "annotate", ".tmp");            try {                myPreviousFile.createNewFile();            } catch (IOException e) {                SVNErrorManager.error(0, e);            }            DebugLog.log("first base file created: " + myPreviousFile);        }    }