Search in sources :

Example 1 with CommitInfo

use of org.jetbrains.idea.svn.checkin.CommitInfo in project intellij-community by JetBrains.

the class BaseSvnFileAnnotation method getToolTip.

public String getToolTip(final int lineNumber) {
    final CommitInfo info = myInfos.getOrNull(lineNumber);
    if (info == null)
        return "";
    SvnFileRevision revision = myRevisionMap.get(info.getRevision());
    if (revision != null) {
        String prefix = myInfos.getAnnotationSource(lineNumber).showMerged() ? "Merge source revision" : "Revision";
        return prefix + " " + info.getRevision() + ": " + revision.getCommitMessage();
    }
    return "";
}
Also used : SvnFileRevision(org.jetbrains.idea.svn.history.SvnFileRevision) CommitInfo(org.jetbrains.idea.svn.checkin.CommitInfo)

Aggregations

CommitInfo (org.jetbrains.idea.svn.checkin.CommitInfo)1 SvnFileRevision (org.jetbrains.idea.svn.history.SvnFileRevision)1