diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java index ea2ac94faf5c..e05b19fb5c65 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/AbstractVcsHelperImpl.java @@ -173,13 +173,13 @@ public class AbstractVcsHelperImpl extends AbstractVcsHelper { } private FileHistoryPanelImpl resetHistoryPanel() { + final VcsHistorySession copy = mySession.copyWithCachedRevision(); if (myFileHistoryPanel == null) { ContentManager contentManager = ProjectLevelVcsManagerEx.getInstanceEx(myVcs.getProject()).getContentManager(); - final VcsHistorySession copy = mySession.copyWithCachedRevision(); myFileHistoryPanel = new FileHistoryPanelImpl(myVcs, myPath, copy, myVcsHistoryProvider, contentManager, myRefresher); } else { - myFileHistoryPanel.getHistoryPanelRefresh().consume(mySession); + myFileHistoryPanel.getHistoryPanelRefresh().consume(copy); } return myFileHistoryPanel; }