From 47cf58e016aca764dfc241c09ff0f8fdfc75a5e0 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Thu, 2 Jun 2016 18:26:51 +0300 Subject: [PATCH] [file-history] provide correct revision for getRevisionInfo method --- .../com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java index 2ce7c14dbefb..868c123e34f0 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java @@ -519,7 +519,7 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton impleme html.append("

"); } if (addRevisionInfo) { - String revisionInfo = getRevisionInfo(revision); + String revisionInfo = getRevisionInfo(revision.getRevision()); html.append("") .append(getHtmlWithFonts(revisionInfo)).append("
"); original.append(revisionInfo).append("\n"); @@ -1123,6 +1123,7 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton impleme } } + // TODO this class should not implements VcsFileRevision (this is too confusing) static class TreeNodeOnVcsRevision extends DefaultMutableTreeNode implements VcsFileRevision, DualTreeElement { private final VcsFileRevision myRevision;